Support » Plugin: WP-REST-API Menus » Need numeral support

  • 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 1 year, 4 months ago by mrpritchett.
  • The topic ‘Need numeral support’ is closed to new replies.