Skip to content

Commit

Permalink
2024 Theme: Expand local nav items
Browse files Browse the repository at this point in the history
These items may not be permanent, but they help with testing while we're in development
  • Loading branch information
adamwoodnz committed May 14, 2024
1 parent c4504a1 commit 9dd187b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions wp-content/themes/pub/wporg-learn-2024/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ function update_prism_css_path( $path ) {
function add_site_navigation_menus( $menus ) {
return array(
'learn' => array(
array(
'label' => __( 'Learning Pathways', 'wporg-learn' ),
'url' => '/learning-pathways/',
),
array(
'label' => __( 'User', 'wporg-learn' ),
'url' => '/learning-pathway/user/',
Expand All @@ -158,6 +162,18 @@ function add_site_navigation_menus( $menus ) {
'label' => __( 'Developer', 'wporg-learn' ),
'url' => '/learning-pathway/developer/',
),
array(
'label' => __( 'Courses', 'wporg-learn' ),
'url' => '/courses/',
),
array(
'label' => __( 'Lessons', 'wporg-learn' ),
'url' => '/lessons/',
),
array(
'label' => __( 'Online Workshops', 'wporg-learn' ),
'url' => '/online-workshops/',
),
),
);
}

0 comments on commit 9dd187b

Please sign in to comment.