WordPress at a glance
filter is not described

show_post_locked_dialog filter-hook . WP 3.6.0

Filters whether to show the post locked dialog.

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

Usage

add_filter( 'show_post_locked_dialog', 'filter_function_name_2034', 10, 3 );
function filter_function_name_2034( $display, $post, $user ){
	// filter...

	return $display;
}
$display(true/false)
Whether to display the dialog.
Default: true
$post(WP_Post)
Post object.
$user(WP_User)
The user with the lock for the post.

Список изменений

С версии 3.6.0 Введена.

Где вызывается хук

_admin_notice_post_locked()
show_post_locked_dialog
wp-admin/includes/post.php 1678
if ( ! apply_filters( 'show_post_locked_dialog', true, $post, $user ) ) {
wp-admin/edit-form-blocks.php 247
if ( apply_filters( 'show_post_locked_dialog', true, $post, $user_id ) ) {

Где используется хук в ядре WP

Использование не найдено.