remove_permastruct

Advertisement

Summery Summery

Removes a permalink structure.

Syntax Syntax

remove_permastruct( string $name )

Description Description

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

Parameters Parameters

$name

(string) (Required) Name for permalink structure.

Source Source

File: wp-includes/rewrite.php

function remove_permastruct( $name ) {
	global $wp_rewrite;

	$wp_rewrite->remove_permastruct( $name );
}

Advertisement

Changelog Changelog

Changelog
Version Description
4.5.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.