WP_Rewrite::get_category_permastruct() WordPress Method

The WP_Rewrite::get_category_permastruct() method is used to retrieve the category permalink structure. This structure is used to generate the category permalink.

WP_Rewrite::get_category_permastruct() #

Retrieves the permalink structure for categories.


Description

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.


Top ↑

Return

(string|false) Category permalink structure on success, false on failure.


Top ↑

Source

File: wp-includes/class-wp-rewrite.php

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


Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.