handle_network_bulk_actions-{$screen}

FILTER wp-admin\network\site-themes.php (ligne 139) github
Fires when a custom bulk action should be handled. The redirect link should be modified with success or failure feedback from the action to be used to display feedback to the user. The dynamic portion of the hook name, `$screen`, refers to the current screen ID.

Paramètres

Entrée :
$referer, $action, $themes, $id
Sortie :
@param string $redirect_url The redirect URL.
@param string $action       The action being taken.
@param array  $items        The items to take the action on.
@param int    $site_id      The site ID.

Utilisation

// Modifier la valeur avec le filtre 'handle_network_bulk_actions-{$screen}'
add_filter('handle_network_bulk_actions-{$screen}', 'ma_fonction_filtre', 10, 1);

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

Actualités

Chargement des actualités...