Created
February 26, 2026 10:41
-
-
Save propertyhive/ac96e0ef82141389ead4189a3ea8f35c 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_filter( 'propertyhive_single_property_actions', 'remove_floorplans_and_virtual_tours_action' ); | |
| function remove_floorplans_and_virtual_tours_action( $actions ) | |
| { | |
| foreach ( $actions as $i => $action ) | |
| { | |
| if ( | |
| isset( $action['class'] ) && | |
| ( | |
| $action['class'] === 'action-floorplans' || | |
| $action['class'] === 'action-virtual-tour' | |
| ) | |
| ) | |
| { | |
| unset( $actions[ $i ] ); | |
| } | |
| } | |
| return $actions; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment