bbp_get_topic_post_type_rewrite

Return array of topic post type rewrite settings.

Description

(array) bbp_get_topic_post_type_rewrite(); 

Returns (array)


Usage

  1. if ( !function_exists( 'bbp_get_topic_post_type_rewrite' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/topics/template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_get_topic_post_type_rewrite(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/topics/template.php  
  1. function bbp_get_topic_post_type_rewrite() { 
  2. return apply_filters( 'bbp_get_topic_post_type_rewrite', array( 
  3. 'slug' => bbp_get_topic_slug(),  
  4. 'with_front' => false 
  5. ) );