| 1 | <?php |
||
| 4 | class Query_Helper { |
||
| 5 | |||
| 6 | /** |
||
| 7 | * Finds or creates new query based on provided params |
||
| 8 | * |
||
| 9 | * @param array|boolean $args |
||
| 10 | * @return object WP_Query |
||
| 11 | */ |
||
| 12 | public static function find_query( $args = false ) { |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Returns current WP_Query |
||
| 35 | * |
||
| 36 | * @return object WP_Query |
||
| 37 | */ |
||
| 38 | public static function get_current_query() { |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Checks and returns WP_Query for home posts page |
||
| 52 | * |
||
| 53 | * @param object $query WP_Query |
||
| 54 | * @return object WP_Query |
||
| 55 | */ |
||
| 56 | private static function handle_maybe_custom_posts_page( $query ) { |
||
| 70 | } |
||
| 71 |