• Please update the second rest route to include number support at the end of the slug. Here is the code:

    register_rest_route( $this->namespace, '/menus/(?P<id>[a-zA-Z\d+(-]+)',   array(
        'methods' => \WP_REST_Server::READABLE,
        'callback' => [$this, 'get_menu_data'],
    ) );
    • This topic was modified 6 years, 3 months ago by mrpritchett.
  • The topic ‘Need numeral support’ is closed to new replies.