bp_core_catch_profile_uri

Redirect away from /profile URIs if XProfile is not enabled.

Description

bp_core_catch_profile_uri(); 

Usage

  1. if ( !function_exists( 'bp_core_catch_profile_uri' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-catchuri.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_core_catch_profile_uri(); 
  7.  

Defined (1)

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

/bp-core/bp-core-catchuri.php  
  1. function bp_core_catch_profile_uri() { 
  2. if ( !bp_is_active( 'xprofile' ) ) { 
  3.  
  4. /** 
  5. * Filters the path to redirect users to if XProfile is not enabled. 
  6. * @since 1.0.0 
  7. * @param string $value Path to redirect users to. 
  8. */