| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: Auto Alt Text |
| 5 |
* Description: This plugin allows you to automatically generate an Alt Text for images uploaded into the media library via AI.. |
| 6 |
* Version: 2.4.2 |
| 7 |
* Author: Valerio Monti |
| 8 |
* Author URI: https://www.vmweb.it |
| 9 |
* Text Domain: auto-alt-text |
| 10 |
* Domain Path: /languages |
| 11 |
* License: GPL v3 |
| 12 |
* Requires PHP: 7.4 |
| 13 |
* Requires WP: 6.0 |
| 14 |
* Namespace: AATXT |
| 15 |
*/ |
| 16 |
|
| 17 |
use AATXT\App\Setup; |
| 18 |
|
| 19 |
if ( ! defined( 'ABSPATH' ) ) { |
| 20 |
exit; // Exit if accessed directly. |
| 21 |
} |
| 22 |
define('AATXT_FILE_ABSPATH', __FILE__); |
| 23 |
define('AATXT_ABSPATH', dirname(__FILE__)); |
| 24 |
define('AATXT_URL', plugin_dir_url(__FILE__)); |
| 25 |
define('AATXT_LANGUAGES_RELATIVE_PATH', dirname( plugin_basename( __FILE__ ) ) . '/languages/'); |
| 26 |
|
| 27 |
require AATXT_ABSPATH . '/vendor/autoload.php'; |
| 28 |
|
| 29 |
Setup::register(); |
| 30 |
|