WPIntell

Source evidence

WP-API missing data for menu location

Menu Swapper · support · 2017-01-31T16:21:00+00:00

mixedsentiment
mediumseverity
0.84relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

7 / 29 rows with source links

24.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
klihelp resolved
WP-API doesn’t show any data for the registered custom menu location. // url/wp-json/wp/v2/menu-locations/nav-menu1 { code: "rest_no_route", message: "No route was found matching the URL and request method", data: { status: 404 } } // the plugin function.php // function mswp_register_menus(){ $theme_locations = get_option( MSWP_THEME_LOC_OPTION ); if( $theme_locations ){ foreach( $theme_locations as $loc ){ register_nav_menus( array( $loc['slug'] => $loc['name'] ) ); } } } add_action( 'init', 'mswp_register_menus' , 20 ); All ok, The issue is with wp-api-menus plugin. https://wordpress.org/support/topic/invalid-meta-links-in-menu-locations/ Glad you got it sorted, klihelp

Comments

2 shown
klihelp 2017-01-31T16:52:00+00:00

All ok, The issue is with wp-api-menus plugin. https://wordpress.org/support/topic/invalid-meta-links-in-menu-locations/

sevenspark 2017-01-31T17:36:00+00:00

Glad you got it sorted, klihelp