Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save propertyhive/541513b644f68f585f534376aaef9dbd to your computer and use it in GitHub Desktop.
Save propertyhive/541513b644f68f585f534376aaef9dbd to your computer and use it in GitHub Desktop.
add_action( "propertyhive_property_imported_agentsinsight_xml", 'import_fitted_information', 10, 2 );
function import_fitted_information($post_id, $property)
{
$fitted_information = '';
if (
isset($property->fitted) && (string)$property->fitted == 't' &&
isset($property->fitted_comment) && (string)$property->fitted_comment != '' )
{
$fitted_information = (string)$property->fitted_comment;
}
update_post_meta( $post_id, '_fitted_information', $fitted_information );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment