rem_new_property_approved

This action is called whenever a new property is approved is located in classes\hooks.class.php and classes\shortcodes.class.php

Arguments

  1. Property ID [Integer]

Example

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

add_action( 'rem_new_property_approved', 'rem_custom_email_on_approval', 10, 1 );

function rem_custom_email_on_approval($property_id){
    wp_mail( 'your@email.com', 'New Property Approved', 'A new property is approved.');
}

 

Previous rem_new_property_submitted
Next rem_agent_contact_before_submit