From 4527063dc90e5c55cf40730fa48101730c85ae7d Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Fri, 7 Jun 2024 10:32:19 +1200 Subject: [PATCH] Sensei admin: Add Topics tab to Courses navigation --- wp-content/plugins/wporg-learn/inc/admin.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-content/plugins/wporg-learn/inc/admin.php b/wp-content/plugins/wporg-learn/inc/admin.php index a631ed2f6..d11c3aa9b 100644 --- a/wp-content/plugins/wporg-learn/inc/admin.php +++ b/wp-content/plugins/wporg-learn/inc/admin.php @@ -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; }