mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-24 15:24:36 +00:00
Taxonomy: Introduce unregister_taxonomy().
This new function can be used to completely unregister non built-in taxonomies. Fixes #35227. git-svn-id: https://develop.svn.wordpress.org/trunk@36243 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -334,7 +334,7 @@ function _unregister_post_type( $cpt_name ) {
|
||||
}
|
||||
|
||||
function _unregister_taxonomy( $taxonomy_name ) {
|
||||
unset( $GLOBALS['wp_taxonomies'][$taxonomy_name] );
|
||||
unregister_taxonomy( $taxonomy_name );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user