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.


wpf_get_user_id( $contact_id )
  • $contact_id (string) (Required): The contact ID to search by.


(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?