show_post_locked_dialog

show_post_locked_dialog

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('show_post_locked_dialog') is found 2 times:

  • /wp-admin/edit-form-blocks.php line 178
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    if ( $user_id ) {
        $locked = false;
     
        /** This filter is documented in wp-admin/includes/post.php */
        if ( apply_filters( 'show_post_locked_dialog', true, $post, $user_id ) ) {
            $locked = true;
        }
     
        $user_details = null;
        if ( $locked ) {
            $user         = get_userdata( $user_id );
  • /wp-admin/includes/post.php line 1798
    1794
    1795
    1796
    1797
    1798
    1799
    1800
    1801
    1802
    1803
    1804
         * @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.
         */
        if ( ! apply_filters( 'show_post_locked_dialog', true, $post, $user ) ) {
            return;
        }
     
        $locked = true;
    } else {
        $locked = false;