WP_Rewrite::remove_permastruct()publicWP 4.5.0

Removes a permalink structure.

Method of the class: WP_Rewrite{}

No Hooks.

Return

null. Nothing (null).

Usage

global $wp_rewrite;
$wp_rewrite->remove_permastruct( $name );
$name(string) (required)
Name for permalink structure.

Changelog

Since 4.5.0 Introduced.

WP_Rewrite::remove_permastruct() code WP 6.4.3

public function remove_permastruct( $name ) {
	unset( $this->extra_permastructs[ $name ] );
}