filtrod 4.2.0
dashboard_recent_posts_query_args
Opis — z kodu źródłowego
Filters the query arguments used for the Recent Posts widget.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$query_args | array | The 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
}
// rejestracja funkcji zwrotnej
add_filter( 'dashboard_recent_posts_query_args', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii