Home › Forums › WTI Like Post PRO › Author Liked Posts Template in Woo Commerce My Account page › Reply To: Author Liked Posts Template in Woo Commerce My Account page
August 21, 2014 at 6:47 pm #215
I am not sure if I understood your question correctly or not but if you are trying to get the current logged in user’s id, then you can use the following code and then use that value.
$author = wp_get_current_user(); $user_id = (int)$author->ID;
If this is not what you wanted, then can you please explain this in details?