get seller ID, get_user_by, woocommerce_payment_complete
Viewing 2 Posts - 1 through 2 (of 2 total)
Author | Posts |
---|---|
July 7, 2015 at 7:55 pm 54642 | |
towhid | I am attempting to get the sellers ID during this hook:
I cannot figure out a good way to get this done here is what I am doing so far. I have a custom table that I am using that uses the seller id as one of the keys and updates the table.
Here is my code:
Also I have set $seller equal to a seller ID , e.g. $seller = '1'; which successfully updated the table for the seller with the ID of 1. Please help me get the sellers ID, thank you. |
July 7, 2015 at 8:22 pm 54646 | |
Bryan | I solved the problem. I used the following code to set the seller variable
I hope this helps someone. |
July 8, 2015 at 12:24 pm 54723 | |
towhid | Hello Bryan, I am very happy that you have solved the problem. It will help someone if needed. I am going to mark this topic as resolved. Thanks |
Viewing 2 Posts - 1 through 2 (of 2 total)