filtrreferencjaod 2.1.0
found_posts_query
Opis — z kodu źródłowego
Filters the query to run for retrieving the found posts.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$found_posts_query | string | The query to run to find the found posts. |
$query | \WP_Query | The WP_Query instance (passed by reference). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'found_posts_query', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'found_posts_query', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii