manage_{$this->screen->id}_sortable_columns

FILTER wp-admin\includes\class-wp-list-table.php (ligne 1344) github
Filters the list table sortable columns for a specific screen. The dynamic portion of the hook name, `$this->screen->id`, refers to the ID of the current screen.

Paramètres

Entrée :
$sortable_columns
Sortie :
@param array $sortable_columns An array of sortable columns.

Utilisation

// Modifier la valeur avec le filtre 'manage_{$this->screen->id}_sortable_columns'
add_filter('manage_{$this->screen->id}_sortable_columns', 'ma_fonction_filtre', 10, 1);

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

Actualités

Chargement des actualités...