Repository navigation
Expand file tree
/
Copy pathuncoder.php
More file actions
54 lines (48 loc) · 1.84 KB
/
Copy pathuncoder.php
File metadata and controls
54 lines (48 loc) · 1.84 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Plugin Name: Uncoder – AI-Powered Website Builder
* Plugin URI: https://uncoderbuilder.com/
* Description: Visual drag & drop website builder with a full theme builder (headers, footers, single, archive, 404, popups, mega menus, loop items) and a built-in MCP server so AI assistants like Claude, ChatGPT and Cursor can design and build your site.
* Version: 0.1.5
* Requires at least: 6.6
* Requires PHP: 8.0
* WC tested up to: 11.2
* Author: Uncoder
* Author URI: https://uncoderbuilder.com/
* Update URI: https://github.com/UncoderBuilder/uncoder
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: uncoder
* Domain Path: /languages
*
* @package Uncoder\Builder
*/
defined( 'ABSPATH' ) || exit;
define( 'UNCODER_WB_VERSION', '0.1.5' );
define( 'UNCODER_WB_FILE', __FILE__ );
define( 'UNCODER_WB_PATH', plugin_dir_path( __FILE__ ) );
define( 'UNCODER_WB_URL', plugin_dir_url( __FILE__ ) );
define( 'UNCODER_WB_BASENAME', plugin_basename( __FILE__ ) );
define( 'UNCODER_WB_MIN_PHP', '8.0' );
if ( version_compare( PHP_VERSION, UNCODER_WB_MIN_PHP, '<' ) ) {
add_action(
'admin_notices',
static function () {
echo '<div class="notice notice-error"><p>';
echo esc_html(
sprintf(
/* translators: %s: required PHP version. */
__( 'Uncoder requires PHP %s or newer.', 'uncoder' ),
UNCODER_WB_MIN_PHP
)
);
echo '</p></div>';
}
);
return;
}
require_once UNCODER_WB_PATH . 'includes/Autoloader.php';
\Uncoder\Builder\Autoloader::register();
register_activation_hook( __FILE__, array( \Uncoder\Builder\Install::class, 'activate' ) );
register_deactivation_hook( __FILE__, array( \Uncoder\Builder\Install::class, 'deactivate' ) );
\Uncoder\Builder\Plugin::instance()->boot();