WP_Rewrite::get_category_permastruct

Advertisement

Summery Summery

Retrieves the permalink structure for categories.

Syntax Syntax

WP_Rewrite::get_category_permastruct()

Description 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.

Return Return

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

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.