bbp_generate_rewrite_rules

Generate bbPress-specific rewrite rules.

Description

bbp_generate_rewrite_rules( (WP_Rewrite) $wp_rewrite ); 

Parameters (1)

0. $wp_rewrite (WP_Rewrite)
The wp rewrite.

Usage

  1. if ( !function_exists( 'bbp_generate_rewrite_rules' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/sub-actions.php'; 
  3.  
  4. // The wp rewrite. 
  5. $wp_rewrite = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_generate_rewrite_rules($wp_rewrite); 
  9.  

Defined (1)

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

/includes/core/sub-actions.php  
  1. function bbp_generate_rewrite_rules( $wp_rewrite ) { 
  2. do_action_ref_array( 'bbp_generate_rewrite_rules', array( &$wp_rewrite ) );