show_post_locked_dialog

FILTER wp-admin\includes\post.php (ligne 1816) github
Filters whether to show the post locked dialog. Returning false from the filter will prevent the dialog from being displayed.

Paramètres

Entrée :
true, $post, $user
Sortie :
@param bool    $display Whether to display the dialog. Default true.
@param WP_Post $post    Post object.
@param WP_User $user    The user with the lock for the post.

Utilisation

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

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

Actualités

Chargement des actualités...