bp_core_catch_profile_uri()
Redirect away from /profile URIs if XProfile is not enabled.
Description Description
Source Source
File: bp-core/bp-core-catchuri.php
function bp_core_catch_profile_uri() { if ( !bp_is_active( 'xprofile' ) ) { /** * Filters the path to redirect users to if XProfile is not enabled. * * @since 1.0.0 * * @param string $value Path to redirect users to. */ bp_core_load_template( apply_filters( 'bp_core_template_display_profile', 'members/single/home' ) ); } }
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |