PluginProbe
WPGet API – Connect to any external REST API / 1.4.6
WPGet API – Connect to any external REST API v1.4.6
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 +8 -11 2.2.31.4.6 View file →
@@ -4,10 +4,11 @@
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.4.6
9 9 * Text Domain: wpgetapi
10 + * Domain Path: /languages/
10 11 * License: GPL2 or later
11 12 *
12 13 */
13 14
@@ -26,9 +27,9 @@
26 27 * @since 1.0.0
27 28 */
28 29 protected static $_instance = null;
29 30
30 - public $version = '2.2.3';
31 + public $version = '1.4.6';
31 32
32 33 /**
33 34 * Main Instance.
34 35 */
@@ -78,10 +79,8 @@
78 79 $this->define( 'WPGETAPIDIR',plugin_dir_path( __FILE__ ) );
79 80 $this->define( 'WPGETAPIURL',plugin_dir_url( __FILE__ ) );
80 81 $this->define( 'WPGETAPIBASENAME', plugin_basename( __FILE__ ) );
81 82 $this->define( 'WPGETAPIVERSION', $this->version );
82 - $this->define( 'WPGETAPILICENSEPAGE', 'wpgetapi_plugin_licenses' );
83 - $this->define( 'WPGETAPISTOREURL', 'https://wpgetapi.com' );
84 83 }
85 84
86 85 /**
87 86 * Define hooks.
@@ -87,11 +86,13 @@
87 86 * Define hooks.
88 87 * @since 1.4.2
89 88 */
90 89 private function hooks() {
90 +
91 91 $plugin_file = WPGETAPIBASENAME;
92 92 add_filter( "plugin_action_links_{$plugin_file}", array( $this, 'plugin_action_links' ), 10, 4 );
93 93 add_filter( 'plugin_row_meta', array( $this, 'filter_plugin_row_meta' ), 10, 4 );
94 +
94 95 }
95 96
96 97 /**
97 98 * Define constant if not already set.
@@ -108,15 +109,11 @@
108 109 * Include required files.
109 110 * @since 1.0.0
110 111 */
111 112 public function includes() {
113 +
114 + require_once ( WPGETAPIDIR . '/lib/cmb2/init.php' );
112 115
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 116 include_once ( WPGETAPIDIR . 'includes/class-encryption.php' );
120 117 include_once ( WPGETAPIDIR . 'includes/class-admin-options.php' );
121 118
122 119 include_once ( WPGETAPIDIR . 'includes/functions.php' );
@@ -123,9 +120,8 @@
123 120 include_once ( WPGETAPIDIR . 'includes/class-enqueues.php' );
124 121 include_once ( WPGETAPIDIR . 'includes/class-api.php' );
125 122
126 123 include_once ( WPGETAPIDIR . 'frontend/functions.php' );
127 - include_once ( WPGETAPIDIR . 'includes/class-licenses.php' );
128 124
129 125 }
130 126
131 127 /**
@@ -169,8 +165,9 @@
169 165 );
170 166
171 167 return array_merge( $new, $actions );
172 168 }
169 +
173 170
174 171 }
175 172
176 173