WordPress at Your Fingertips

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.

1 time — 0.000013 sec (very fast) | 50000 times — 0.02 sec (speed of light) | PHP 7.0.5, WP 4.5

No Hooks.

Return

null. Nothing.

Usage

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

Notes

Changelog

Since 4.5.0 Introduced.

Code of remove_permastruct() WP 5.8.1

function remove_permastruct( $name ) {
	global $wp_rewrite;

	$wp_rewrite->remove_permastruct( $name );
}

Rewrite (clean friendly URL)

No comments
    Log In