WP_Taxonomy::remove_rewrite_rules() – Removes any rewrite rules, permastructs, and rules for the taxonomy.
You appear to be a bot. Output may be restricted
Description
Removes any rewrite rules, permastructs, and rules for the taxonomy.
Usage
WP_Taxonomy::remove_rewrite_rules();
Parameters
Returns
void
Source
File name: wordpress/wp-includes/class-wp-taxonomy.php
Lines:
1 to 15 of 15
public function remove_rewrite_rules() { /* @var WP $wp */ global $wp; // Remove query var. if ( false !== $this->query_var ) { $wp->remove_query_var( $this->query_var ); } // Remove rewrite tags and permastructs. if ( false !== $this->rewrite ) { remove_rewrite_tag( "%$this->name%" ); remove_permastruct( $this->name ); } }