WP_Rewrite::get_category_permastruct()publicWP 1.5.0

Retrieves the permalink structure for categories.

If the category_base property has no value, then the category structure will have the front property value, followed by 'category', and finally '%category%'. If it does, then the root property will be used, along with the category_base property value.

Method of the class: WP_Rewrite{}

No Hooks.


String|false. Category permalink structure on success, false on failure.


global $wp_rewrite;


Since 1.5.0 Introduced.

WP_Rewrite::get_category_permastruct() code WP 6.3

public function get_category_permastruct() {
	return $this->get_extra_permastruct( 'category' );