-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwp-ai-image-gen.php
41 lines (35 loc) · 1.24 KB
/
wp-ai-image-gen.php
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
<?php
/**
* Plugin Name: WP AI Image Gen
* Description: A plugin to generate images using AI.
* Requires at least: 6.1
* Requires PHP: 7.0
* Version: 0.1.6
* Author: Jacob Schweitzer
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wp-ai-image-gen
*
* @category Plugin
* @package WP_AI_Image_Gen
* @author Jacob Schweitzer <[email protected]>
* @license GPL-2.0-or-later https://www.gnu.org/licenses/gpl-2.0.html
* @link https://jacobschweitzer.com/wp-ai-image-gen
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Set a debug log flag.
define( 'WP_AI_IMAGE_GEN_DEBUG_LOG', false );
// Load utility functions first
require_once __DIR__ . '/inc/utils.php';
// Load base classes and interfaces
require_once __DIR__ . '/inc/class-image-handler.php';
require_once __DIR__ . '/inc/interface-image-provider.php';
require_once __DIR__ . '/inc/class-image-provider.php';
// Load provider manager and admin classes
require_once __DIR__ . '/inc/class-provider-manager.php';
require_once __DIR__ . '/inc/class-admin.php';
// Load REST API functionality
require_once __DIR__ . '/inc/class-rest-api.php';