Uma área de pesquisa sobre o WordPress para devs e autores do tema



remove_permastruct ›

Desde4.5.0
Obsoleton/a
remove_permastruct ( $name )
Parâmetros:
  • (string) $name Name for permalink structure.
    Required: Yes
Ver:
Definido em:
Codex:

Removes a permalink structure.

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



Fonte

function remove_permastruct( $name ) {
	global $wp_rewrite;

	$wp_rewrite->remove_permastruct( $name );
}