filtrod 3.4.0
posts_request_ids
Opis — z kodu źródłowego
Filters the Post IDs SQL request before sending.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$request | string | The post ID request. |
$query | \WP_Query | The WP_Query instance. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'posts_request_ids', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'posts_request_ids', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii