comment_edit_redirect

FILTER wp-admin\comment.php (ligne 377) github
Filters the URI the user is redirected to after editing a comment in the admin.

Paramètres

Entrée :
$location, $comment_id
Sortie :
@param string $location The URI the user will be redirected to.
@param int $comment_id The ID of the comment being edited.

Utilisation

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

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

Actualités

Chargement des actualités...