Rest_Store_Settings::register_routes()
Source
File: includes/libs/rest-api/endpoints/plugin/rest-store-settings.class.php
public function register_routes() { register_rest_route( parent::get_namespace(), parent::get_rest_base(), [ 'methods' => \WP_REST_Server::CREATABLE, 'callback' => [$this, 'get_response'], 'permission_callback' => function(){ return current_user_can( 'manage_options' ); }, 'args' => [ ] ] ); }