32 public $__version =
'1.0.1';
63 public function __construct( $id, $object_type, $args )
67 $this->object_type = $object_type;
72 register_taxonomy( $id, $object_type, $args );
75 $this->initAdminHook();
83 private function initAdminHook()
87 add_action(
'admin_print_styles-edit-tags.php', array( $this,
'admin_print_styles' ) );
90 add_action(
'current_screen', array( $this,
'_current_screen' ) );
103 public function admin_print_styles()
115 public function _current_screen( $screen )
117 if ( !empty( $screen->taxonomy ) && $screen->taxonomy == $this->id ) {
118 $this->admin_print_styles();