WP_Rewrite::remove_permastruct( string $name )

Removes a permalink structure.

Parameters

$name

(string) (Required) Name for permalink structure.

Source

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

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

Changelog

Version Description
4.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rewrite/remove_permastruct