Support » Plugin: WP API Menus » Invalid meta.links in /menu-locations/

  • klihelp

    (@klihelp)


    meta.links does not followl the wp-api-menus/v2 namespace in

    url/wp-json/wp-api-menus/v2/menu-locations/

Viewing 1 replies (of 1 total)
  • klihelp

    (@klihelp)

    in wp-api-menus-v2.php, fix $rest_url to use get_plugin_namespace()

    
            public static function get_menu_locations( $request ) {
    
                $locations        = get_nav_menu_locations();
                $registered_menus = get_registered_nav_menus();
    	    // $rest_url      = get_rest_url() . self::get_api_namespace() . '/menu-locations/';
    	    // to:
    	    $rest_url = get_rest_url() . self::get_plugin_namespace() . '/menu-locations/';
    
    
Viewing 1 replies (of 1 total)
  • The topic ‘Invalid meta.links in /menu-locations/’ is closed to new replies.