WordPress at a glance
function is not described

WP_Rewrite::set_category_base() public WP 1.5.0

Sets the category base for the category permalink.

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.

{} It's a method of the class: WP_Rewrite{}

No Hooks.

Return

Null. Nothing.

Usage

global $wp_rewrite;
$wp_rewrite->set_category_base( $category_base );
$category_base(string) (required)
Category permalink structure base.

Changelog

Since 1.5.0 Introduced.

Code of WP_Rewrite::set_category_base() WP 5.5.3

<?php
public function set_category_base( $category_base ) {
	if ( get_option( 'category_base' ) !== $category_base ) {
		update_option( 'category_base', $category_base );
		$this->init();
	}
}