bbp_new_topic_pre_content

bbp_new_topic_pre_content

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: bbpress.2.6.9

apply_filters('bbp_new_topic_pre_content') is found 1 times:

  • /includes/topics/functions.php line 173
    		$topic_content = $_POST['bbp_topic_content'];
    	}
    
    	// Filter and sanitize
    	$topic_content = apply_filters( 'bbp_new_topic_pre_content', $topic_content );
    
    	// No topic content
    	if ( empty( $topic_content ) ) {
    		bbp_add_error( 'bbp_topic_content', __( '<strong>Error</strong>: Your topic cannot be empty.', 'bbpress' ) );
    	}
    
    

See this hook used in plugins: