This function retrieves a user’s WordPress user ID based on their CRM contact ID.
This function will return an integer containing the ID, otherwise it will return false
if there is none.
#Parameters
wpf_get_user_id( $contact_id )
$contact_id
(string) (Required): The contact ID to search by.
#Return
(mixed) An int
of the user ID, or false
if nothing is found.
#Get the current user’s ID
$user_id = wpf_get_user_id( $contact_id );
Was this helpful?
Let us know if you liked the post. That’s the only way we can improve.