apply_filters( ‘show_post_locked_dialog’, bool $display, WP_Post $post, WP_User $user )

In this article

Filters whether to show the post locked dialog.

Description

Returning false from the filter will prevent the dialog from being displayed.

Parameters

$displaybool
Whether to display the dialog. Default true.
$postWP_Post
Post object.
$userWP_User
The user with the lock for the post.

Source

if ( ! apply_filters( 'show_post_locked_dialog', true, $post, $user ) ) {

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.