# WP_Rewrite::remove_permastruct()

**Method: **Removes a permalink structure.

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

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:1773

**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:1816

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

**Method: **Retrieves the rewrite rules.

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

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

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

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

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

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

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

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

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

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

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

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

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

**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:1292

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

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

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

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

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

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