WP_Rewrite::remove_permastruct
Removes a permalink structure.
Method of the class: WP_Rewrite{}
No Hooks.
Returns
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() WP Rewrite::remove permastruct code WP 7.0
public function remove_permastruct( $name ) {
unset( $this->extra_permastructs[ $name ] );
}