On this page
remove_permastruct( string $name )
Removes a permalink structure.
Description
Can only be used to remove permastructs that were added using add_permastruct() .
Built-in permastructs cannot be removed.
See also
Parameters
$namestring Required-
Name for permalink structure.
Source
File: wp-includes/rewrite.php. View all references
function remove_permastruct( $name ) {
global $wp_rewrite;
$wp_rewrite->remove_permastruct( $name );
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Rewrite::remove_permastruct() wp-includes/class-wp-rewrite.php | Removes a permalink structure. |
Used By
| Used By | Description |
|---|---|
| WP_Taxonomy::remove_rewrite_rules() wp-includes/class-wp-taxonomy.php | Removes any rewrite rules, permastructs, and rules for the taxonomy. |
| WP_Post_Type::remove_rewrite_rules() wp-includes/class-wp-post-type.php | Removes any rewrite rules, permastructs, and rules for the post type. |
Changelog
| Version | Description |
|---|---|
| 4.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/remove_permastruct