bbp_check_post_lock_window

bbp_check_post_lock_window

Hook Type: filter

See hook in core

Displaying hooks found in version: bbpress.2.6.9

apply_filters('bbp_check_post_lock_window') is found 1 times:

  • /includes/common/locks.php line 43
    		? $lock[1]
    		: get_post_meta( $post->ID, '_edit_last', true );
    
    	// Filter editing window duration
    	$time_window = apply_filters( 'bbp_check_post_lock_window', 3 * MINUTE_IN_SECONDS );
    
    	// Return user who is or last edited
    	if ( ! empty( $time ) && ( $time > ( time() - $time_window ) ) && ( $user !== bbp_get_current_user_id() ) ) {
    		return (int) $user;
    	}