rem_new_property_approved
This action is called whenever a new property is approved is located in classeshooks.class.php and classesshortcodes.class.php
Arguments
- 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.'); }