WordPress开发者和主题制作者的搜索引擎



remove_permastruct ›

Since4.5.0
已弃用n/a
remove_permastruct ( $name )
参数:
  • (string) $name Name for permalink structure.
    Required: Yes
查看:
定义在:
文档:

Removes a permalink structure.

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



源码

function remove_permastruct( $name ) {
	global $wp_rewrite;

	$wp_rewrite->remove_permastruct( $name );
}