dashboard_recent_posts_query_args

FILTER wp-admin\includes\dashboard.php (ligne 996) github
Filters the query arguments used for the Recent Posts widget.

Paramètres

Entrée :
$query_args
Sortie :
@param array $query_args The arguments passed to WP_Query to produce the list of posts.

Utilisation

// Modifier la valeur avec le filtre 'dashboard_recent_posts_query_args'
add_filter('dashboard_recent_posts_query_args', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($query_args) {
    // Modifier la valeur
    return $query_args;
}

Actualités

Chargement des actualités...