remove_rewrite_tag
Removes an existing rewrite tag (like %postname%).
Description
remove_rewrite_tag( (string) $tag );
Parameters (1)
- 0. $tag (string)
- Name of the rewrite tag.
Usage
if ( !function_exists( 'remove_rewrite_tag' ) ) { require_once ABSPATH . WPINC . '/rewrite.php'; } // Name of the rewrite tag. $tag = ''; // NOTICE! Understand what this does before running. $result = remove_rewrite_tag($tag);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/rewrite.php
- function remove_rewrite_tag( $tag ) {
- global $wp_rewrite;
- $wp_rewrite->remove_rewrite_tag( $tag );
- }