WP_Rewrite::remove_permastruct() WordPress Method

The WP_Rewrite::remove_permastruct() WordPress method removes any permastruct that might have been added via the add_permastruct() method. This is typically used when switching between permalink structures, or when deleting a custom permastruct.

WP_Rewrite::remove_permastruct( string $name ) #

Removes a permalink structure.


Parameters

$name

(string)(Required)Name for permalink structure.


Top ↑

Source

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

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


Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.