#Overview
This function retrieves the CRM field ID for a single WordPress meta key.
#Parameters
wpf_get_crm_field( $meta_key, $default = false )
$meta_key
(string) (Required): The meta key to retrieve the field ID of.$default
(bool) (Optional): The default value to return if no key is found.
#Return
(mixed) Returns a string
of the CRM field or false
if nothing is found.
#Get a CRM field ID
$field_id = wpf_get_crm_field( $meta_key );
#Get a CRM field ID, but return a boolean value if no ID is found
$contact_id = wpf_get_crm_field( $meta_key, $default = false );
Was this helpful?
Let us know if you liked the post. That’s the only way we can improve.