wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



remove_permastruct › WordPress Function

Depuis4.5.0
Dépréciéen/a
remove_permastruct ( $name )
Paramètres:
  • (string) $name Name for permalink structure.
    Requis: Oui
Voir:
Défini(e) dans:
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 );
}