bbp_rewrite()
Return the rewrite rules class being used to interact with URLs.
Description Description
This function is abstracted to avoid global touches to the primary rewrite rules class. bbPress supports WordPress’s $wp_rewrite
by default, but can be filtered to support other configurations if needed.
Return Return
(object)
Source Source
File: includes/core/abstraction.php
function bbp_rewrite() { return bbp_get_global_object( 'wp_rewrite', 'WP_Rewrite', (object) array( 'root' => '', 'pagination_base' => 'page', ) ); }
Changelog Changelog
Version | Description |
---|---|
2.5.8 | Introduced. |