WP HOOKS
filtrod 3.4.0

posts_request_ids

Args 2Plik wp-includes/class-wp-query.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the Post IDs SQL request before sending.

Parametry

ParametrTypOpis
$requeststringThe post ID request.
$query\WP_QueryThe 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
}

Popularne w tej kategorii