remove_rewrite_tag( string $tag )

In this article

Removes an existing rewrite tag (like %postname%).

Parameters

$tagstringrequired
Name of the rewrite tag.

Source

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

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.