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.

{} Это метод класса: WP_Rewrite{}

Хуков нет.

Возвращает

Строку|false. Category permalink structure on success, false on failure.

Использование

global $wp_rewrite;
$wp_rewrite->get_category_permastruct();

Список изменений

С версии 1.5.0 Введена.

Код WP_Rewrite::get_category_permastruct() WP 6.0.2

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