bbp_new_forum_pre_parent_id

bbp_new_forum_pre_parent_id

Hook Type: filter

See hook in core

Displaying hooks found in version: bbpress.2.6.9

apply_filters('bbp_new_forum_pre_parent_id') is found 1 times:

  • /includes/forums/functions.php line 195
    		$forum_parent_id = bbp_get_forum_id( $_POST['bbp_forum_parent_id'] );
    	}
    
    	// Filter and sanitize
    	$forum_parent_id = apply_filters( 'bbp_new_forum_pre_parent_id', $forum_parent_id );
    
    	// No forum parent was passed (should never happen)
    	if ( empty( $forum_parent_id ) ) {
    		bbp_add_error( 'bbp_new_forum_missing_parent', __( '<strong>Error</strong>: Your forum must have a parent.', 'bbpress' ) );
    
    	// Forum exists