rem_new_agent_rejected

This action is called whenever a new agent is rejected and is located in classes/setup.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 rejected, paste below code in your theme’s functions.php file and replace the email address (your@email.com).

add_action( 'rem_new_agent_rejected', 'rem_custom_email_on_rejected', 10, 1 );

function rem_custom_email_on_rejected($agent){
    wp_mail( 'your@email.com', 'Agent Rejected', 'agent is rejected with email address '. $agent['useremail']);
}