-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathairo-wp.php
More file actions
73 lines (64 loc) · 2.59 KB
/
Copy pathairo-wp.php
File metadata and controls
73 lines (64 loc) · 2.59 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
* Plugin Name: Airo WP AI Builder
* Plugin URI: https://github.com/godaddy-wordpress/airo-wp
* Description: MCP server and block pattern library for AI-powered site building.
* Version: 0.3.5
* Requires at least: 6.9
* Requires PHP: 7.4
* Author: GoDaddy
* Author URI: https://www.godaddy.com
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: airo-wp
* GitHub Plugin URI: godaddy-wordpress/airo-wp
* Primary Branch: main
* Release Asset: true
*
* @package airo-wp
*/
/*
* Notes on the three Git Updater headers above.
*
* They are read by the Git Updater plugin, which offers updates straight from this
* repository's GitHub Releases, and are inert without it. They are kept in the
* header block proper -- and the explanation down here -- because WordPress scans
* that whole block for "Name:" patterns, so prose quoting a header name next to the
* real one invites a parser surprise.
*
* Primary Branch is required because Git Updater defaults to "master".
*
* Release Asset makes Git Updater install the built zip attached to each Release
* instead of GitHub's source zipball. That is not an optimisation. The repository
* ships no vendor/ or dist/, so a zipball install would hit the autoload bail-out
* below and register no blocks. With this header set, Git Updater refuses to update
* when a Release carries no asset -- failing loudly beats installing a dead plugin.
*
* One header is deliberately absent: Update URI. It is a WordPress 5.8+ core header,
* and when it points anywhere other than wordpress.org, core stops applying
* WordPress.org updates for the plugin. Setting it to GitHub would disable
* auto-updates for everyone who installed from the plugin directory. Git Updater
* needs only the three above, so both channels keep working.
*/
declare(strict_types=1);
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'AIRO_WP_VERSION' ) ) {
define( 'AIRO_WP_VERSION', '0.3.5' );
}
if ( ! defined( 'AIRO_WP_PLUGIN_FILE' ) ) {
define( 'AIRO_WP_PLUGIN_FILE', __FILE__ );
}
if ( ! defined( 'AIRO_WP_PLUGIN_DIR' ) ) {
define( 'AIRO_WP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'AIRO_WP_PLUGIN_URL' ) ) {
define( 'AIRO_WP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
}
$airo_wp_autoload = __DIR__ . '/vendor/autoload.php';
if ( ! file_exists( $airo_wp_autoload ) ) {
return;
}
// phpcs:ignore WordPressVIPMinimum.Files.IncludingFile.UsingVariable
require $airo_wp_autoload;
use GoDaddy\WordPress\Plugins\AiroWp\Plugin;
Plugin::init();