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)


Top ↑

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',
	) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.8 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.