1. Home
  2. Developers
  3. Action Hooks
  4. Jetpack CRM WordPress Action Reference

Jetpack CRM WordPress Action Reference

This article covers the action hooks that are within Jetpack CRM with information on how to use them.

Jetpack CRM Action Reference

We have the following actions hooks available to you in Jetpack CRM

zbs_new_customer

This hook fires when a new customer (contact) is added to your CRM, here’s an example of how to use it to add a new WordPress User

add_action('zbs_new_customer','zeroBSCRM_newWPuser');
function zeroBSCRM_newWPuser($cID){
  $email = zeroBS_customerEmail($cID);
  $pwd = wp_generate_password(8,false);
  $user_id = wp_create_user( $email, $pwd, $email);
  return $user_id;
}
Updated on July 9, 2020

Was this article helpful?

Related Articles

Still not found an answer?
If you've searched the knowledge base and still can't find a solution, please submit a ticket.
CONTACT SUPPORT