Created
July 16, 2024 14:53
-
-
Save propertyhive/1bba5b769b54b105e442bd06b4647939 to your computer and use it in GitHub Desktop.
This file contains 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_property_query_tax_query', 'remove_sold', 10, 2 ); | |
function remove_sold( $tax_query, $query ) | |
{ | |
$tax_query[] = array( | |
'taxonomy' => 'availability', | |
'terms' => array(15), | |
'operator' => 'NOT IN', | |
); | |
return $tax_query; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment