WP_REST_Server::READABLE, 'callback' => array( __CLASS__, 'get_policy' ), 'permission_callback' => array( Agentmatica_Auth::class, 'verify_request_token' ), ) ); } /** * @return WP_REST_Response */ public static function get_policy(): WP_REST_Response { return new WP_REST_Response( Agentmatica_Support_Settings::get_store_policy(), 200 ); } }