bp_rewrites_pre_get_slug

bp_rewrites_pre_get_slug

Hook Type: filter

See hook in core

Displaying hooks found in version: buddypress.14.3.3

apply_filters('bp_rewrites_pre_get_slug') is found 1 times:

  • /bp-core/bp-core-rewrites.php line 93
    	 * @param string  $default_slug The screen default slug, used as a fallback.
    	 * @param string  $rewrite_id   The screen rewrite ID, used to find the custom slugs.
    	 * @param string  $component_id The BuddyPress component's ID.
    	 */
    	$use_default_slug = apply_filters( 'bp_rewrites_pre_get_slug', $using_legacy, $default_slug, $rewrite_id, $component_id );
    	if ( $use_default_slug ) {
    		return $default_slug;
    	}
    
    	$directory_pages = bp_core_get_directory_pages();
    	$slug            = $default_slug;