show_post_locked_dialog

show_post_locked_dialog

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

See hook in core

Displaying hooks found in version: wordpress-6.5.3

apply_filters('show_post_locked_dialog') is found 2 times:

  • /wp-admin/edit-form-blocks.php line 151
    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 1796
    		 * @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;