PluginProbe
GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI / 8.0.5
GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI v8.0.5
8.0.5 8.0.4 8.0.3 8.0.1 8.0.2 8.0.0 7.9.9.7 7.9.9.6 7.9.9.5 7.9.9.4 7.9.9.3 7.9.9.2 7.9.9.1 7.9.9 7.9.8 7.9.7 7.9.6 7.9.5 7.9.4 7.9.3 7.9.2 7.9.1 7.9.0 7.8.9 7.8.8 All 47 releases
← All changes | includes/api.php +26 -0 7.8.8 → 8.0.5 View file →
@@ -1,0 +1,26 @@
1 +<?php
2 +/**
3 + * Rest API
4 + *
5 + * @package GamiPress\Rest_API
6 + * @author GamiPress <[email protected]>, Ruben Garcia <[email protected]>
7 + * @since 1.6.0
8 + */
9 +// Exit if accessed directly
10 +if( !defined( 'ABSPATH' ) ) exit;
11 +
12 +require_once GAMIPRESS_DIR . 'includes/api/class-wp-rest-gamipress-posts-controller.php';
13 +
14 +/**
15 + * Register new Rest API routes
16 + *
17 + * @since 1.0.0
18 + */
19 +function gamipress_rest_api_init() {
20 +
21 + // Register the /wp/v2/gamipress-posts endpoint (used on blocks to get a multiple post types endpoint)
22 + $controller = new WP_REST_GamiPress_Posts_Controller();
23 + $controller->register_routes();
24 +
25 +}
26 +add_action('rest_api_init', 'gamipress_rest_api_init');