Created
April 9, 2025 11:22
-
-
Save propertyhive/541513b644f68f585f534376aaef9dbd to your computer and use it in GitHub Desktop.
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_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