Created
September 22, 2022 11:44
-
-
Save temsool/ce87ad8091b013f57ace5119c53a71a2 to your computer and use it in GitHub Desktop.
meta_query elementor query in stock woocommerce order hack
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
<?php | |
add_action( 'elementor/query/brandProductsQuery', function( $query ) { | |
$meta_query[] = [ | |
'key' => '_stock_status', | |
'value' => 'instock', | |
'compare' => '=', | |
]; | |
$query->set('meta_query', $meta_query); | |
}); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment