pre_months_dropdown_query

FILTER wp-admin\includes\class-wp-list-table.php (ligne 728) github
Filters whether to short-circuit performing the months dropdown query.

Paramètres

Entrée :
false, $post_type
Sortie :
@param object[]|false $months   'Months' drop-down results. Default false.
@param string         $post_type The post type.

Utilisation

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

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

Actualités

Chargement des actualités...