Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'propertyhive_property_imported_blm', 'set_ph_custom_fields', 10, 2 );
- function set_ph_custom_fields($post_id, $property)
- {
- if ( isset($property['INVESTOR_LIST_DISPLAY']) )
- {
- update_post_meta( $post_id, '_investor_list_display', $property['INVESTOR_LIST_DISPLAY'] );
- }
- if ( isset($property['INVESTOR_RENT_AMOUNT']) )
- {
- update_post_meta( $post_id, '_investor_rent_amount', $property['INVESTOR_RENT_AMOUNT'] );
- }
- if ( isset($property['INVESTOR_YIELD']) )
- {
- update_post_meta( $post_id, '_investor_yield', $property['INVESTOR_YIELD'] );
- }
- }
Add Comment
Please, Sign In to add comment