Skip to content

Commit

Permalink
Sensei admin: Add Topics tab to Courses navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Jun 6, 2024
1 parent 052f794 commit 4527063
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wp-content/plugins/wporg-learn/inc/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,5 +566,11 @@ function add_sensei_course_custom_navigation_tabs( $tabs ) {
'screen_id' => 'edit-learning-pathway',
);

$tabs['topics'] = array(
'label' => __( 'Topics', 'wporg-learn' ),
'url' => admin_url( 'edit-tags.php?taxonomy=topic&post_type=course' ),
'screen_id' => 'edit-topic',
);

return $tabs;
}

0 comments on commit 4527063

Please sign in to comment.