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.
Source
File: wp-includes/class-wp-rewrite.php
public function remove_permastruct( $name ) { unset( $this->extra_permastructs[ $name ] ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.5.0 | Introduced. |