If moderation is turned on and the user (agent) edits the published listing - MyHome will require the listing to be approved again by the administrator. 


 


If you wish to automatically accept all changes please use this code in your Child Theme functions.php


add_filter( 'myhome_property_status', function ( $post_status, $post_id, $old_status ) {
if ( $post_status !== 'pending' ) {
return $post_status;
}

if ( $old_status === 'publish' ) {
return 'publish';
}

return ! empty( get_post_meta( $post_id, 'mh_approved', true ) ) ? 'publish' : 'pending';
}, 10, 3 );


 


Please use this code in your Child Theme functions.php . You can read more about Child Themes here: 


How to use Child Theme? How to change files (php / css / js) and keep theme future update compatibility? 


 


Open theme editor in your Wp-Admin (make sure you have selected MyHome Child to edit)



 


3. Paste this code at the bottom on file functions.php


4. After this change your users don't need to wait for the approved property after edit. Status for the property will be published.