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

#215
Webtechideas
Keymaster

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?