Created
November 15, 2017 20:28
-
-
Save ScottDeLuzio/8a8ea21139db29ab72721aba3d947729 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wpcrm_system_zapier_contact_data_filter', 'get_contacts_company_url' ); | |
function get_contacts_company_url( $data, $post_id ){ | |
// get the organization's ID number | |
$org_id = get_post_meta( $post_id, '_wpcrm_contact-attach-to-organization', true ); | |
// retrieve the organization's website URL and add to the $data array | |
$data['orgurl'] = get_post_meta( $org_id, '_wpcrm_organization-website', true ); | |
// return $data | |
return $data; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment