Search
 
SCRIPT & CODE EXAMPLE
 

PHP

woocommerce_product_query

function bd_change_product_query( $q ){
  
  $meta_query = $q->get( 'meta_query' );
  
  $meta_query[] = array(
    'key' => 'custom_acf_key',
    'value' => 'custom_acf_value',
    'compare' => '='
  );
  
  $q->set( 'meta_query', $meta_query );
}

add_action( 'woocommerce_product_query', 'bd_change_product_query' )
Comment

PREVIOUS NEXT
Code Example
Php :: id type laravel 
Php :: php inner join array 
Php :: how to split sting in php 
Php :: docker compose php 
Php :: public $baseURL codeigniter 4 
Php :: php artisan app:name in laravel 6 
Php :: how to delete database in phpmyadmin 
Php :: laravel flash message 
Php :: laravel seeder update 
Php :: find_in_set in laravel 
Php :: mailjet 
Php :: if else php 
Php :: get firstwod php 
Php :: error handling in laravel 
Php :: php array_search 
Php :: apache 2 
Php :: laravel debugbar ServiceProvider to the providers 
Php :: return last inserted id mysql opencart 
Php :: laravel admin disable batch selection 
Php :: php how to check if user has a role on login 
Php :: laravel send request on tor request 
Php :: validate phone number with dial code laravel 8 
Php :: wordpress html classes 
Php :: import csv laravel 
Php :: wp query compare like and or 
Php :: eventon php code 
Php :: How to automail in php 
Php :: php artisan seading 
Php :: mongodb uploading csv php 
Php :: Formatting an Excel Column 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =