Skip to content

Instantly share code, notes, and snippets.

@propertyhive
Created February 26, 2026 10:41
Show Gist options
  • Select an option

  • Save propertyhive/ac96e0ef82141389ead4189a3ea8f35c to your computer and use it in GitHub Desktop.

Select an option

Save propertyhive/ac96e0ef82141389ead4189a3ea8f35c to your computer and use it in GitHub Desktop.
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