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

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