WP HOOKS
filtrod 4.2.0

dashboard_recent_posts_query_args

Args 1Plik wp-admin/includes/dashboard.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the query arguments used for the Recent Posts widget.

Parametry

ParametrTypOpis
$query_argsarrayThe arguments passed to WP_Query to produce the list of posts.

Wywołanie

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

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

Popularne w tej kategorii