remove_rewrite_tag() WordPress Function
The remove_rewrite_tag() function is used to remove a specified rewrite tag from the list of rewrite tags that are generated by the WordPress rewrite system.
remove_rewrite_tag( string $tag ) #
Removes an existing rewrite tag (like %postname%).
Parameters
- $tag
(string)(Required)Name of the rewrite tag.
Source
File: wp-includes/rewrite.php
function remove_rewrite_tag( $tag ) {
global $wp_rewrite;
$wp_rewrite->remove_rewrite_tag( $tag );
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.5.0 | Introduced. |