bp_uri

  • apply_filters( 'bp_uri', $path )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-catchuri.php :: Trac Source Line: 54
      		$bp->pages = bp_core_get_directory_pages();
      
      	// Ajax or not?
      	if ( strpos( $_SERVER['REQUEST_URI'], 'wp-load.php' ) )
      		$path = bp_core_referrer();
      	else
      		$path = esc_url( $_SERVER['REQUEST_URI'] );
      
      	// Filter the path
      	$path = apply_filters( 'bp_uri', $path );
      
      	// Take GET variables off the URL to avoid problems,
      	// they are still registered in the global $_GET variable
      	if ( $noget = substr( $path, 0, strpos( $path, '?' ) ) )
      		$path = $noget;
      
      	// Fetch the current URI and explode each part separated by '/' into an array
      	$bp_uri = explode( '/', $path );
      
      	// Loop and remove empties
      

Comments are closed.