override_post_lock

override_post_lock

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('override_post_lock') is found 1 times:

  • /wp-admin/includes/post.php line 1857
    		 * @param bool    $override Whether to allow the post lock to be overridden. Default true.
    		 * @param WP_Post $post     Post object.
    		 * @param WP_User $user     The user with the lock for the post.
    		 */
    		$override = apply_filters( 'override_post_lock', true, $post, $user );
    		$tab_last = $override ? '' : ' wp-tab-last';
    
    		?>
    		<div class="post-locked-message">
    		<div class="post-locked-avatar"><?php echo get_avatar( $user->ID, 64 ); ?></div>
    		<p class="currently-editing wp-tab-first" tabindex="0">