wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
pre_get_posts › Hooks de Ações WordPress
Desde2.0.0
Obsoleton/a
› do_action_ref_array( 'pre_get_posts', array( &$this )
| Parâmetros: |
|
| Definido em: |
|
| Codex: |
Fires after the query variable object is created, but before the actual query is run.
Note: If using conditional tags, use the method versions within the passed instance (e.g. `$query->is_main_query()` instead of `is_main_query()`). This is because the functions like `is_main_query()` test against the global `$wp_query` instance, not the passed one.Funções relacionadas: get_posts, get_post, wp_get_post_cats, wp_get_post_tags, wp_get_post_terms, wp_get_sites