-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquery-forge.php
More file actions
40 lines (34 loc) · 1.33 KB
/
query-forge.php
File metadata and controls
40 lines (34 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Plugin Name: Query Forge
* Plugin URI: https://github.com/queryforgeplugin/Query-Forge
* Description: Visual node-based query builder for WordPress: Elementor widget and Gutenberg block with a shared React Flow editor.
* Version: 1.3.6.5
* Author: Query Forge Development
* Author URI: https://queryforgeplugin.com
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: query-forge
* Requires at least: 6.2
* Requires PHP: 7.4
* Tested up to: 6.9
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
// phpcs:disable WordPress.WP.I18n.TextDomainMismatch -- Text domain must be lowercase per WordPress.org requirements, but PluginCheck expects directory name match.
define( 'QUERY_FORGE_VERSION', '1.3.6.5' );
define( 'QUERY_FORGE_PATH', plugin_dir_path( __FILE__ ) );
define( 'QUERY_FORGE_URL', plugin_dir_url( __FILE__ ) );
define( 'QUERY_FORGE_FILE', __FILE__ );
// Load the main plugin class.
require_once QUERY_FORGE_PATH . 'includes/class-qf-plugin.php';
register_activation_hook(
QUERY_FORGE_FILE,
static function () {
update_option( 'query_forge_db_version', QUERY_FORGE_VERSION, false );
require_once QUERY_FORGE_PATH . 'includes/class-qf-starter-queries.php';
\Query_Forge\QF_Starter_Queries::seed_on_activation();
}
);
\Query_Forge\Plugin::instance();