PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 2.15.3
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v2.15.3
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/API/Route/Routes.php +11 -4 2.02.15.3 View file →
@@ -5,18 +5,25 @@
5 5 use BitCode\BitForm\API\Controller\EntryController;
6 6 use WP_REST_Controller;
7 7 use WP_REST_Server;
8 8
9 -class Routes extends WP_REST_Controller {
10 -// public $entryController;
9 +class Routes extends WP_REST_Controller
10 +{
11 + private $entryController;
11 12
12 - public function __construct() {
13 + protected $namespace;
14 +
15 + protected $rest_base;
16 +
17 + public function __construct()
18 + {
13 19 $this->namespace = 'bitform';
14 20 $this->rest_base = 'v1';
15 21 $this->entryController = new EntryController();
16 22 }
17 23
18 - public function register_routes() {
24 + public function register_routes()
25 + {
19 26 /* google sheet route */
20 27 register_rest_route(
21 28 $this->namespace,
22 29 $this->rest_base . '/google/',