| @@ -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.0.0 | |
| 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.0.0'; | |
| 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. |
| @@ -110,9 +111,8 @@ | ||
| 110 | 111 | */ |
| 111 | 112 | public function includes() { |
| 112 | 113 | |
| 113 | 114 | require_once ( WPGETAPIDIR . '/lib/cmb2/init.php' ); |
| 114 | - require_once ( WPGETAPIDIR . '/includes/block-editor/block-editor.php' ); | |
| 115 | 115 | |
| 116 | 116 | include_once ( WPGETAPIDIR . 'includes/class-encryption.php' ); |
| 117 | 117 | include_once ( WPGETAPIDIR . 'includes/class-admin-options.php' ); |
| 118 | 118 | |
| @@ -120,9 +120,8 @@ | ||
| 120 | 120 | include_once ( WPGETAPIDIR . 'includes/class-enqueues.php' ); |
| 121 | 121 | include_once ( WPGETAPIDIR . 'includes/class-api.php' ); |
| 122 | 122 | |
| 123 | 123 | include_once ( WPGETAPIDIR . 'frontend/functions.php' ); |
| 124 | - include_once ( WPGETAPIDIR . 'includes/class-licenses.php' ); | |
| 125 | 124 | |
| 126 | 125 | } |
| 127 | 126 | |
| 128 | 127 | /** |
| @@ -166,8 +165,9 @@ | ||
| 166 | 165 | ); |
| 167 | 166 | |
| 168 | 167 | return array_merge( $new, $actions ); |
| 169 | 168 | } |
| 169 | + | |
| 170 | 170 | |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | |