Changeset 12174 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/taxonomy.php
- Timestamp:
- 11/01/2022 02:36:20 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/taxonomy.php
r12067 r12174 22 22 register_lesson_plan_series(); 23 23 register_workshop_series(); 24 register_workshop_topic();25 24 register_workshop_type(); 26 25 register_wp_version(); 27 26 register_included_content(); 27 register_topic(); 28 28 } 29 29 … … 234 234 ); 235 235 236 $args = array(236 $args = array( 237 237 'labels' => $labels, 238 238 'hierarchical' => true, … … 298 298 299 299 /** 300 * Register the WorkshopSeries taxonomy.300 * Register the Lesson Plan Series taxonomy. 301 301 */ 302 302 function register_lesson_plan_series() { … … 387 387 388 388 /** 389 * Register the WorkshopTopic taxonomy.390 */ 391 function register_ workshop_topic() {392 $labels = array( 393 'name' => _x( 'Topics', 'Topic Plans associated to tutorial.', 'wporg-learn' ),389 * Register the Topic taxonomy. 390 */ 391 function register_topic() { 392 $labels = array( 393 'name' => _x( 'Topics', 'Topics associated with the content.', 'wporg-learn' ), 394 394 'singular_name' => _x( 'Topic', 'Taxonomy Singular Name', 'wporg-learn' ), 395 395 'menu_name' => __( 'Topics', 'wporg-learn' ), … … 411 411 'items_list' => __( 'Topic list', 'wporg-learn' ), 412 412 'items_list_navigation' => __( 'Topic list navigation', 'wporg-learn' ), 413 'back_to_items' => __( '← Back to topics', 'wporg-learn' ), 413 414 ); 414 415 … … 424 425 'show_in_rest' => true, 425 426 'capabilities' => array( 426 'assign_terms' => 'edit_ workshops',427 ), 428 ); 429 430 register_taxonomy( 'topic', array( ' wporg_workshop' ), $args );427 'assign_terms' => 'edit_any_learn_content', // See \WPOrg_Learn\Capabilities\map_meta_caps. 428 ), 429 ); 430 431 register_taxonomy( 'topic', array( 'lesson-plan', 'wporg_workshop', 'course', 'lesson', 'meeting' ), $args ); 431 432 } 432 433
Note: See TracChangeset
for help on using the changeset viewer.