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

Zero BS CRM WordPress Action Reference

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

Zero BS CRM Action Reference

We have the following actions hooks available to you in Zero BS 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 March 7, 2018

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.