Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('site-reviews-forms/builder/assigned_posts/args', function ($args) {
- if ('product' === $args['post_type'] ?? 0) {
- $args['tax_query'] = [[
- 'field' => 'slug',
- 'taxonomy' => 'product_cat',
- 'terms' => ['red-products'], // change as needed
- ]];
- }
- return $args;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement