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_3973', 10, 3 ); function filter_function_name_3973( $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.
Changelog
Since 3.6.0 | Introduced. |
Where the hook is called
wp-admin/includes/post.php 1678
if ( ! apply_filters( 'show_post_locked_dialog', true, $post, $user ) ) {
wp-admin/edit-form-blocks.php 256
if ( apply_filters( 'show_post_locked_dialog', true, $post, $user_id ) ) {