Changeset 10169 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/class-workshop.php
- Timestamp:
- 08/13/2020 11:43:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/class-workshop.php
r10130 r10169 6 6 /** 7 7 * Register Workshop Post Type 8 */8 */ 9 9 public static function workshop_post_type() { 10 10 $labels = array( … … 37 37 'filter_items_list' => __( 'Filter Workshops list', 'wporg_learn' ), 38 38 ); 39 $args = array(40 'label' => __( 'Workshop', 'wporg_learn' ),41 'description' => __( 'WordPress.org Training Workshop', 'wporg_learn' ),42 'labels' => $labels,43 'supports' => array( 'title', 'editor', 'comments', 'revisions', 'custom-fields' ),44 'taxonomies' => array( 'lesson_group', 'topic', 'category' ),45 'hierarchical' => true,46 'public' => true,47 'show_ui' => true,48 'show_in_menu' => true,49 'has_archive' => 'workshops',50 'menu_position' => 6,51 'menu_icon' => 'dashicons-category',52 'show_in_admin_bar' => true,53 'show_in_nav_menus' => true,54 'can_export' => true,55 'exclude_from_search' => false,56 'publicly_queryable' => true,57 'capability_type' => 'page',58 'show_in_rest' => true39 $args = array( 40 'label' => __( 'Workshop', 'wporg_learn' ), 41 'description' => __( 'WordPress.org Training Workshop', 'wporg_learn' ), 42 'labels' => $labels, 43 'supports' => array( 'title', 'editor', 'comments', 'revisions', 'custom-fields' ), 44 'taxonomies' => array( 'lesson_group', 'topic', 'category' ), 45 'hierarchical' => true, 46 'public' => true, 47 'show_ui' => true, 48 'show_in_menu' => true, 49 'has_archive' => 'workshops', 50 'menu_position' => 6, 51 'menu_icon' => 'dashicons-category', 52 'show_in_admin_bar' => true, 53 'show_in_nav_menus' => true, 54 'can_export' => true, 55 'exclude_from_search' => false, 56 'publicly_queryable' => true, 57 'capability_type' => 'page', 58 'show_in_rest' => true, 59 59 60 60 ); … … 64 64 /** 65 65 * Register Workshop Grouping Taxonomy 66 */66 */ 67 67 public static function lesson_workshop_taxonomy() { 68 68 $labels = array( … … 90 90 91 91 $args = array( 92 'labels' => $labels,93 'hierarchical' => true,94 'public' => true,95 'show_ui' => true,96 'show_admin_column' => true,97 'show_in_nav_menus' => true,98 'show_tagcloud' => false,99 'show_in_rest' => true,92 'labels' => $labels, 93 'hierarchical' => true, 94 'public' => true, 95 'show_ui' => true, 96 'show_admin_column' => true, 97 'show_in_nav_menus' => true, 98 'show_tagcloud' => false, 99 'show_in_rest' => true, 100 100 ); 101 101 … … 105 105 /** 106 106 * Register Workshop Topics Taxonomy 107 */107 */ 108 108 public static function workshop_topics_taxonomy() { 109 109 $labels = array( … … 131 131 132 132 $args = array( 133 'labels' => $labels,134 'hierarchical' => false,135 'public' => true,136 'show_ui' => true,137 'show_admin_column' => true,138 'show_in_nav_menus' => true,139 'show_tagcloud' => false,140 'show_in_rest' => true,133 'labels' => $labels, 134 'hierarchical' => false, 135 'public' => true, 136 'show_ui' => true, 137 'show_admin_column' => true, 138 'show_in_nav_menus' => true, 139 'show_tagcloud' => false, 140 'show_in_rest' => true, 141 141 ); 142 142
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)