rem_new_property_submitted
This action is called whenever a new property is submitted for approval and 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 submitted, paste below code in your theme’s functions.php file and replace the email address (your@email.com).
add_action( 'rem_new_property_submitted', 'rem_custom_email_on_submission', 10, 1 ); function rem_custom_email_on_submission($property_id){ wp_mail( 'your@email.com', 'New Property Submitted', 'A new property is submitted.'); }