Created
November 19, 2019 23:23
-
-
Save dexit/cd88648e590ba644874041f787e42fc7 to your computer and use it in GitHub Desktop.
Wordpress plugin Property Hive Vebra Import build fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( "propertyhive_property_imported_vebra_xml", "set_new_build_marketing_flag", 10, 2 ); | |
function set_new_build_marketing_flag($post_id, $property) | |
{ | |
if ( isset($property->newbuild) && $property->newbuild == true ) | |
{ | |
update_post_meta( $post_id, '_new_build', '1' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment