Last active
April 4, 2025 10:12
-
-
Save g-maclean/3b3f02b2f161e4a528746ea05617b2d7 to your computer and use it in GitHub Desktop.
PropertyHive - remove enquiry button from sold properties
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_actions_start", "remove_enquiry_button_for_sold"); | |
| function remove_enquiry_button_for_sold(){ | |
| global $property; | |
| if( in_array($property->availability, ['Sold STC']) ){ | |
| remove_action( 'propertyhive_property_actions_list_start', 'propertyhive_make_enquiry_button', 10 ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment