remove_permastruct( string $name )

Removes a permalink structure.


Description

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

Top ↑

See also


Top ↑

Parameters

$name string Required
Name for permalink structure.

Top ↑

Source

File: wp-includes/rewrite.php. View all references

function remove_permastruct( $name ) {
	global $wp_rewrite;

	$wp_rewrite->remove_permastruct( $name );
}


Top ↑

Changelog

Changelog
Version Description
4.5.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.