Uses
Uses | Description |
---|---|
wp-includes/class-wp-rewrite.php: WP_Rewrite::get_extra_permastruct() | Retrieves an extra permalink structure by name. |
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.
(string|false) Category permalink structure on success, false on failure.
File: wp-includes/class-wp-rewrite.php
public function get_category_permastruct() { return $this->get_extra_permastruct( 'category' ); }
Version | Description |
---|---|
1.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rewrite/get_category_permastruct