A WordPress-centric search engine for devs and theme authors



remove_permastruct ›

Since4.5.0
Deprecatedn/a
remove_permastruct ( $name )
Parameters:
  • (string) $name Name for permalink structure.
    Required: Yes
See:
Defined at:
Codex:

Removes a permalink structure.

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



Source

function remove_permastruct( $name ) {
	global $wp_rewrite;

	$wp_rewrite->remove_permastruct( $name );
}