bp_generate_rewrite_rules

Fire the 'bp_generate_rewrite_rules' action, where BP generates its rewrite rules.

Description

bp_generate_rewrite_rules( (WP_Rewrite) $wp_rewrite ); 

Parameters (1)

0. $wp_rewrite (WP_Rewrite)
See generate_rewrite_rules..

Usage

  1. if ( !function_exists( 'bp_generate_rewrite_rules' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-dependency.php'; 
  3.  
  4. // See 'generate_rewrite_rules'. 
  5. $wp_rewrite = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_generate_rewrite_rules($wp_rewrite); 
  9.  

Defined (1)

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

/bp-core/bp-core-dependency.php  
  1. function bp_generate_rewrite_rules( $wp_rewrite ) { 
  2.  
  3. /** 
  4. * Fires inside the 'bp_generate_rewrite_rules' function. 
  5. * @since 1.7.0 
  6. * @param WP_Rewrite $wp_rewrite WP_Rewrite object. Passed by reference. 
  7. */ 
  8. do_action_ref_array( 'bp_generate_rewrite_rules', array( &$wp_rewrite ) );