WordPress.org

Make WordPress Core

Changeset 1129 in tests


Ignore:
Timestamp:
11/13/12 17:59:22 (17 months ago)
Author:
nbachiyski
Message:

Introduce _unregister_taxonomy()

This is _unregister_post_type()'s counterpart.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/utils.php

    r1020 r1129  
    360360    } 
    361361} 
     362 
     363function _unregister_taxonomy( $taxonomy_name ) { 
     364    unset( $GLOBALS['wp_taxonomies'][$taxonomy_name] ); 
     365} 
Note: See TracChangeset for help on using the changeset viewer.