remove_permastruct

函数


remove_permastruct ( $name )
参数
  • (string)
    $name
    Name for permalink structure.
    Required:
相关
  • WP_Rewrite::remove_permastruct()
定义位置
  • wp-includes/rewrite.php
    , line 233
引入
4.5.0
弃用

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 );
}