retesere20

Untitled

Feb 7th, 2018
129
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'posts_pre_query', function( $posts, $wp_query ) {
  2. ......
  3. return $posts;
  4. }, 10, 2 );
  5.  
  6.  
  7. add_filter( 'posts_request', function( $sql, $query ) {
  8. ......
  9. return $sql;
  10. }, 10, 2 );
RAW Paste Data