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.


Top ↑

Source

File: wp-includes/rewrite.php

function remove_rewrite_tag( $tag ) {
	global $wp_rewrite;
	$wp_rewrite->remove_rewrite_tag( $tag );
}


Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.