show_post_locked_dialog WordPress Filter Hook

The show_post_locked_dialog hook is used to display a dialog box when a post is locked. The dialog box contains a message and a button to unlock the post.

apply_filters( 'show_post_locked_dialog', bool $display, WP_Post $post, WP_User $user ) #

Filters whether to show the post locked dialog.


Description

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


Top ↑

Parameters

$display

(bool)Whether to display the dialog. Default true.

$post

(WP_Post)Post object.

$user

(WP_User)The user with the lock for the post.


Top ↑

Source

File: wp-admin/includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More