# WP_Rewrite::remove_permastruct()

**Method: **Removes a permalink structure.

Source: wp-includes/class-wp-rewrite.php:1776

Skip to content
# WP_Rewrite::remove_permastruct()

# WP_Rewrite::remove_rewrite_tag()

# flush_rewrite_rules_hard

# WP_Rewrite::init()

# WP_Rewrite::set_permalink_structure()

# permalink_structure_changed

# WP_Rewrite::set_category_base()

# WP_Rewrite::set_tag_base()

# WP_Rewrite::__construct()

# WP_Rewrite::add_external_rule()

# tag_rewrite_rules

# WP_Rewrite::add_endpoint()

# generate_rewrite_rules

# WP_Rewrite::add_permastruct()

# rewrite_rules_array

# WP_Rewrite::flush_rules()

# WP_Rewrite::wp_rewrite_rules()

# WP_Rewrite::mod_rewrite_rules()

# mod_rewrite_rules

# rewrite_rules

# WP_Rewrite::iis7_url_rewrite_rules()

# iis7_url_rewrite_rules

# WP_Rewrite::add_rule()

# WP_Rewrite::generate_rewrite_rules()

# WP_Rewrite::generate_rewrite_rule()

# WP_Rewrite::rewrite_rules()

# post_rewrite_rules

# date_rewrite_rules

# root_rewrite_rules

# comments_rewrite_rules

Search

**Method: **Removes a permalink structure.

Source: wp-includes/class-wp-rewrite.php:1776

**Method: **Removes an existing rewrite tag.

Source: wp-includes/class-wp-rewrite.php:823

**Filter Hook: **Filters whether a “hard” rewrite rule flush should be performed when requested.

Source: wp-includes/class-wp-rewrite.php:1819

**Method: **Sets up the object’s properties.

Source: wp-includes/class-wp-rewrite.php:1839

**Method: **Sets the main permalink structure for the site.

Source: wp-includes/class-wp-rewrite.php:1881

**Action Hook: **Fires after the permalink structure is updated.

Source: wp-includes/class-wp-rewrite.php:1896

**Method: **Sets the category base for the category permalink.

Source: wp-includes/class-wp-rewrite.php:1911

**Method: **Sets the tag base for the tag permalink.

Source: wp-includes/class-wp-rewrite.php:1929

**Method: **Constructor – Calls init(), which runs setup.

Source: wp-includes/class-wp-rewrite.php:1941

**Method: **Adds a rewrite rule that doesn’t correspond to index.php.

Source: wp-includes/class-wp-rewrite.php:1666

**Filter Hook (deprecated): **Filters rewrite rules used specifically for Tags.

Source: wp-includes/class-wp-rewrite.php:1417

**Method: **Adds an endpoint, like /trackback/.

Source: wp-includes/class-wp-rewrite.php:1686

**Action Hook: **Fires after the rewrite rules are generated.

Source: wp-includes/class-wp-rewrite.php:1437

**Method: **Adds a new permalink structure.

Source: wp-includes/class-wp-rewrite.php:1738

**Filter Hook: **Filters the full set of generated rewrite rules.

Source: wp-includes/class-wp-rewrite.php:1446

**Method: **Removes rewrite rules and then recreate rewrite rules.

Source: wp-includes/class-wp-rewrite.php:1792

**Method: **Retrieves the rewrite rules.

Source: wp-includes/class-wp-rewrite.php:1463

**Method: **Retrieves mod_rewrite-formatted rewrite rules to write to .htaccess.

Source: wp-includes/class-wp-rewrite.php:1491

**Filter Hook: **Filters the list of rewrite rules formatted for output to an .htaccess file.

Source: wp-includes/class-wp-rewrite.php:1556

**Filter Hook (deprecated): **Filters the list of rewrite rules formatted for output to an .htaccess file.

Source: wp-includes/class-wp-rewrite.php:1566

**Method: **Retrieves IIS7 URL Rewrite formatted rewrite rules to write to web.config file.

Source: wp-includes/class-wp-rewrite.php:1581

**Filter Hook: **Filters the list of rewrite rules formatted for output to a web.config.

Source: wp-includes/class-wp-rewrite.php:1618

**Method: **Adds a rewrite rule that transforms a URL structure to a set of query vars.

Source: wp-includes/class-wp-rewrite.php:1635

**Method: **Generates rewrite rules from a permalink structure.

Source: wp-includes/class-wp-rewrite.php:859

**Method: **Generates rewrite rules with permalink structure and walking directory only.

Source: wp-includes/class-wp-rewrite.php:1234

**Method: **Constructs rewrite matches and queries from permalink structure.

Source: wp-includes/class-wp-rewrite.php:1255

**Filter Hook: **Filters rewrite rules used for “post” archives.

Source: wp-includes/class-wp-rewrite.php:1295

**Filter Hook: **Filters rewrite rules used for date archives.

Source: wp-includes/class-wp-rewrite.php:1309

**Filter Hook: **Filters rewrite rules used for root-level archives.

Source: wp-includes/class-wp-rewrite.php:1324

**Filter Hook: **Filters rewrite rules used for comment feed archives.

Source: wp-includes/class-wp-rewrite.php:1338