Making WordPress.org


Ignore:
Timestamp:
12/08/2022 07:39:55 PM (2 years ago)
Author:
Otto42
Message:

Add taxonomy for business model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php

    r12160 r12310  
    164164        ) );
    165165    }
     166
     167    register_taxonomy( 'theme_business_model', 'repopackage', array(
     168        'hierarchical'      => true, /* for tax_input[] handling on post saves. */
     169        'query_var'         => 'theme_business_model',
     170        'rewrite'           => false,
     171        'labels'            => array(
     172            'name' => __( 'Business Model', 'wporg-plugins' ),
     173        ),
     174        'public'            => true,
     175        'show_ui'           => true,
     176        'show_admin_column' => false,
     177        'capabilities'      => array(
     178            'assign_terms' => 'theme_set_category',
     179        ),
     180    ) );
    166181
    167182    // Add the browse/* views
Note: See TracChangeset for help on using the changeset viewer.