media_row_actions

FILTER wp-admin\includes\class-wp-media-list-table.php (ligne 874) github
Filters the action links for each attachment in the Media list table.

Paramètres

Entrée :
$actions, $post, $this->detached
Sortie :
@param string[] $actions  An array of action links for each attachment.
@param WP_Post  $post     WP_Post object for the current attachment.
@param bool     $detached Whether the list table contains media not attached

Utilisation

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

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

Actualités

Chargement des actualités...