rem_new_agent_register

How Can We Help?

rem_new_agent_register

This action is called whenever a new agent is registered and is located in classes/shortcodes.class.php

Arguments

  1. Agent Details [Array]
    • username
    • first_name
    • last_name
    • useremail
    • and all other custom agent fields

Example

Suppose you want to send a custom email to a specific email address whenever a new agent is registered, paste below code in your theme’s functions.php file and replace the email address (your@email.com).

add_action( 'rem_new_agent_register', 'rem_custom_email_on_registered', 10, 1 );

function rem_custom_email_on_registered($agent){
    wp_mail( 'your@email.com', 'Agent Registered', 'agent is registered with email address '. $agent['useremail']);
}