Advertisement
verygoodplugins

Untitled

Mar 24th, 2021
794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. function wpf_filter_queries_standard_for_search( $mode, $query ) {
  2.  
  3.     if ( $query->is_search() ) {
  4.         $mode = 'standard';
  5.     }
  6.  
  7.     return $mode;
  8.  
  9. }
  10.  
  11. add_filter( 'wpf_query_filtering_mode', 'wpf_filter_queries_standard_for_search', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement