bbp_maybe_get_root_slug()
Maybe return the root slug, based on whether or not it’s included in the url
Description
Return
(string)
Source
File: bp-forums/core/options.php
function bbp_maybe_get_root_slug() { $retval = ''; if ( bbp_get_root_slug() && bbp_include_root_slug() ) $retval = trailingslashit( bbp_get_root_slug() ); return apply_filters( 'bbp_maybe_get_root_slug', $retval ); }
Changelog
Version | Description |
---|---|
bbPress (r3759) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.