Skip to content

Commit

Permalink
Update class-better-search-query.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Oct 10, 2024
1 parent 9b6b0c9 commit d9169d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/class-better-search-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function __construct( $args = array() ) {
add_filter( 'posts_distinct', array( $core_query, 'posts_distinct' ), 10, 2 );
add_filter( 'posts_orderby', array( $core_query, 'posts_orderby' ), 10, 2 );
add_filter( 'posts_groupby', array( $core_query, 'posts_groupby' ), 10, 2 );
add_filter( 'posts_clauses', array( $core_query, 'posts_clauses' ), 10, 2 );
add_filter( 'posts_clauses_request', array( $core_query, 'set_topscore' ), 10, 2 );
add_filter( 'posts_pre_query', array( $core_query, 'posts_pre_query' ), 10, 2 );
add_filter( 'the_posts', array( $core_query, 'the_posts' ), 10, 2 );
Expand All @@ -54,6 +55,7 @@ public function __construct( $args = array() ) {
remove_filter( 'posts_distinct', array( $core_query, 'posts_distinct' ) );
remove_filter( 'posts_orderby', array( $core_query, 'posts_orderby' ) );
remove_filter( 'posts_groupby', array( $core_query, 'posts_groupby' ) );
remove_filter( 'posts_clauses', array( $core_query, 'posts_clauses' ) );
remove_filter( 'posts_clauses_request', array( $core_query, 'set_topscore' ) );
remove_filter( 'posts_pre_query', array( $core_query, 'posts_pre_query' ) );
remove_filter( 'the_posts', array( $core_query, 'the_posts' ) );
Expand Down

0 comments on commit d9169d7

Please sign in to comment.