Skip to content

Commit

Permalink
Merge pull request #1 from andyg2/andyg2-filter-products
Browse files Browse the repository at this point in the history
Add apply_filters hook to prepare_query_args
  • Loading branch information
andyg2 authored Jul 3, 2023
2 parents afebc1e + 17e4ea5 commit 5cb88be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Product/ProductRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ protected function prepare_query_args( array $args = [] ): array {
$args['orderby'] = 'none';
}

$args = apply_filters('gla_filter_product_query_args', $args);

return $args;
}

Expand Down

0 comments on commit 5cb88be

Please sign in to comment.