bp_rewrites_pre_get_slug
bp_rewrites_pre_get_slug
Appears in: buddypress.12.0.0, buddypress.12.1.1, buddypress.12.2.0, buddypress.12.3.0, buddypress.12.4.0, buddypress.12.4.1, buddypress.12.5.0, buddypress.12.5.1, buddypress.14.0.0, buddypress.14.1.0, buddypress.14.2.1
Hook Type: filter
Displaying hooks found in version: buddypress.14.2.1apply_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;