WP_Rewrite::set_category_base

SummerySummery

Sets the category base for the category permalink.

Syntax

WP_Rewrite::set_category_base( string $category_base )

DescriptionDescription

Will update the ‘category_base’ option, if there is a difference between the current category base and the parameter value. Calls WP_Rewrite::init() after the option is updated.

ParametersParameters

$category_base

(string) (Required) Category permalink structure base.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
1.5.0 Introduced.
Scroll to Top