| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class API extends WP_REST_Controller { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Register the routes for the objects of the controller. |
||
| 25 | * |
||
| 26 | * @since 1.0.0 |
||
| 27 | */ |
||
| 28 | 2 | public function register_routes() { |
|
| 39 | ), |
||
| 40 | ) |
||
| 41 | ); |
||
| 42 | 2 | } |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Get the current WordPress version number. |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | * @since 1.0.0 |
||
| 49 | */ |
||
| 50 | 1 | public function get_wp_version() { |
|
| 51 | 1 | global $wp_version; |
|
| 52 | |||
| 53 | 1 | return $wp_version; |
|
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Check if the authenticated user has permission to use an endpoint. |
||
| 58 | * |
||
| 59 | * @return bool |
||
| 60 | * @since 1.0.0 |
||
| 61 | */ |
||
| 62 | 1 | public function check_permissions() { |
|
| 64 | } |
||
| 65 | } |
||
| 66 |