PluginProbe
WPGet API – Connect to any external REST API / 1.7.0
WPGet API – Connect to any external REST API v1.7.0
1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.3 2.1.4 2.1.5 2.2.0 2.2.1 2.2.10 2.2.2 2.2.3 All 97 releases
← All changes | wpgetapi.php +4 -11 2.2.31.7.0 View file →
@@ -4,9 +4,9 @@
4 4 * Plugin URI: https://wordpress.org/plugins/wpgetapi/
5 5 * Description: Connect to external API's and display the API data.
6 6 * Author: WPGetAPI
7 7 * Author URI: https://wpgetapi.com/
8 - * Version: 2.2.3
8 + * Version: 1.7.0
9 9 * Text Domain: wpgetapi
10 10 * License: GPL2 or later
11 11 *
12 12 */
@@ -26,9 +26,9 @@
26 26 * @since 1.0.0
27 27 */
28 28 protected static $_instance = null;
29 29
30 - public $version = '2.2.3';
30 + public $version = '1.7.0';
31 31
32 32 /**
33 33 * Main Instance.
34 34 */
@@ -78,10 +78,8 @@
78 78 $this->define( 'WPGETAPIDIR',plugin_dir_path( __FILE__ ) );
79 79 $this->define( 'WPGETAPIURL',plugin_dir_url( __FILE__ ) );
80 80 $this->define( 'WPGETAPIBASENAME', plugin_basename( __FILE__ ) );
81 81 $this->define( 'WPGETAPIVERSION', $this->version );
82 - $this->define( 'WPGETAPILICENSEPAGE', 'wpgetapi_plugin_licenses' );
83 - $this->define( 'WPGETAPISTOREURL', 'https://wpgetapi.com' );
84 82 }
85 83
86 84 /**
87 85 * Define hooks.
@@ -108,15 +106,11 @@
108 106 * Include required files.
109 107 * @since 1.0.0
110 108 */
111 109 public function includes() {
110 +
111 + require_once ( WPGETAPIDIR . '/lib/cmb2/init.php' );
112 112
113 - if( isset( $_GET['page'] ) && strpos( $_GET['page'], 'wpgetapi_' ) !== false ) {
114 - require_once ( WPGETAPIDIR . '/lib/cmb2/init.php' );
115 - }
116 -
117 - require_once ( WPGETAPIDIR . '/includes/block-editor/block-editor.php' );
118 -
119 113 include_once ( WPGETAPIDIR . 'includes/class-encryption.php' );
120 114 include_once ( WPGETAPIDIR . 'includes/class-admin-options.php' );
121 115
122 116 include_once ( WPGETAPIDIR . 'includes/functions.php' );
@@ -123,9 +117,8 @@
123 117 include_once ( WPGETAPIDIR . 'includes/class-enqueues.php' );
124 118 include_once ( WPGETAPIDIR . 'includes/class-api.php' );
125 119
126 120 include_once ( WPGETAPIDIR . 'frontend/functions.php' );
127 - include_once ( WPGETAPIDIR . 'includes/class-licenses.php' );
128 121
129 122 }
130 123
131 124 /**