WordPress at a glance

remove_rewrite_tag() WP 1.0

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

  • Global. WP_Rewrite. $wp_rewrite WordPress rewrite component.
Works based on: WP_Rewrite()
✈ 1 time = 0.00002s = very fast | 50000 times = 0.07s = speed of light PHP 7.0.5, WP 4.5

No Hooks.

Return

Nothing (null).

Usage

remove_rewrite_tag( $tag );
$tag(string) (required)
Name of the rewrite tag.

Code of remove_rewrite_tag: wp-includes/rewrite.php VER 4.9.8

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

Related Functions

From tag: Rewrite (clean friendly URL)

No comments
    Hello, !     Log In . Register