WordPress at a glance

remove_permastruct() WP 1.0

Removes a permalink structure.

Can only be used to remove permastructs that were added using add_permastruct(). Built-in permastructs cannot be removed.

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

No Hooks.

Return

Nothing (null).

Usage

remove_permastruct( $name );
$name(string) (required)
Name for permalink structure.

Code of remove_permastruct: wp-includes/rewrite.php VER 5.0.1

<?php
function remove_permastruct( $name ) {
	global $wp_rewrite;

	$wp_rewrite->remove_permastruct( $name );
}

Related Functions

From tag: Rewrite (clean friendly URL)

No comments
    Hello, !     Log In . Register