I need to add scroll points to custom links for theme setup in the onboarding-shared.php file :
'navigation_menus' => [
'primary' => [
'getstarted' => [
'title' => 'Get Started',
],
'testimonials' => [
'title' => 'Testimonials',
],
'contact' => [
'title' => 'Contact Us',
],
],
],
Is it possible to hard code the links in the PHP array? I would like to add custom links like this :
#section-2
Like this :

You can use
wp_create_nav_menu()andwp_update_nav_menu_item()to accomplish this: