WP HOOKS
filtrreferencjaod 2.1.0

found_posts

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

Opis — z kodu źródłowego

Filters the number of found posts for the query.

Parametry

ParametrTypOpis
$found_postsintThe number of posts found.
$query\WP_QueryThe WP_Query instance (passed by reference).

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'found_posts', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii