* @since 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { die(); } if ( class_exists( 'Attachment_Category' ) ) { return; } /** * Represents the attachment_category taxonomy. * * @since 1.0.0 */ final class Attachment_Category extends Attachment_Taxonomy { /** * The taxonomy slug. * * @since 1.0.0 * @var string */ protected $slug = 'attachment_category'; /** * The taxonomy labels. * * @since 1.0.0 * @var array */ protected $labels = array(); // Empty to use WordPress Core category labels. /** * The taxonomy arguments. * * @since 1.0.0 * @var array */ protected $args = array( 'public' => false, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => false, 'show_tagcloud' => false, 'show_admin_column' => true, 'hierarchical' => true, 'has_default' => true, 'update_count_callback' => '_update_generic_term_count', 'query_var' => 'attachment_category', 'rewrite' => false, 'capabilities' => array( 'manage_terms' => 'manage_attachment_categories', 'edit_terms' => 'edit_attachment_categories', 'delete_terms' => 'delete_attachment_categories', 'assign_terms' => 'assign_attachment_categories', ), ); }