# wp-data-access/5.5.4/WPDataAccess/API/WPDA_Plugin.php

WP Data Access – App Builder for Tables, Forms, Charts, Maps &amp; Dashboards, version 5.5.4. 23 lines.

- Page: https://pluginprobe.com/plugins/wp-data-access/5.5.4/code/WPDataAccess/API/WPDA_Plugin.php
- Raw: https://pluginprobe.com/plugins/wp-data-access/5.5.4/raw/WPDataAccess/API/WPDA_Plugin.php
- Modified: 2024-05-28T23:00:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-data-access/5.5.4/code/WPDataAccess/API/WPDA_Plugin.php#L10-L20`.

```php
<?php

namespace WPDataAccess\API;

use WPDataAccess\WPDA;
class WPDA_Plugin extends WPDA_API_Core {
    public function register_rest_routes() {
        register_rest_route( WPDA_API::WPDA_NAMESPACE, 'info', array(
            'methods'             => array(\WP_REST_Server::READABLE),
            'callback'            => function () {
                $license = 'free';
                return $this->WPDA_Rest_Response( '', array(
                    'license' => $license,
                    'version' => WPDA::get_option( WPDA::OPTION_WPDA_VERSION ),
                    'client'  => WPDA::get_option( WPDA::OPTION_WPDA_CLIENT_VERSION ),
                ) );
            },
            'permission_callback' => '__return_true',
        ) );
    }

}

```
