WP_Rewrite::get_category_permastruct
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.
Returns
String|false. Category permalink structure on success, false on failure.
Usage
global $wp_rewrite; $wp_rewrite->get_category_permastruct();
Changelog
| Since 1.5.0 | Introduced. |
WP_Rewrite::get_category_permastruct() WP Rewrite::get category permastruct code WP 7.0
public function get_category_permastruct() {
return $this->get_extra_permastruct( 'category' );
}