bbp_new_forum_pre_title

bbp_new_forum_pre_title

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: bbpress.2.6.9

apply_filters('bbp_new_forum_pre_title') is found 1 times:

  • /includes/forums/functions.php line 161
    		$forum_title = sanitize_text_field( $_POST['bbp_forum_title'] );
    	}
    
    	// Filter and sanitize
    	$forum_title = apply_filters( 'bbp_new_forum_pre_title', $forum_title );
    
    	// No forum title
    	if ( empty( $forum_title ) ) {
    		bbp_add_error( 'bbp_forum_title', __( '<strong>Error</strong>: Your forum needs a title.', 'bbpress' ) );
    	}
    
    

See this hook used in plugins: