PluginProbe
Auto Alt Text / trunk
Auto Alt Text vtrunk
3.0.3 2.8.2 1.3.1 1.3.2 2.0.0 2.1.0 2.1.1 2.2.0 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.7.0 2.8.0 2.8.1 All 28 releases
auto-alt-text / auto-alt-text.php

auto-alt-text.php in Auto Alt Text trunk, at auto-alt-text.php

37 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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: 3.0.3
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 at least: 6.2.0
14 * Namespace: AATXT
15 */
16
17 use AATXT\App\Core\PluginBootstrap;
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 // Prefixed (scoped) third-party dependencies, isolated via Strauss to avoid
28 // collisions with other plugins/themes shipping the same packages (e.g. php-di,
29 // psr/container under the Sage/Roots theme). Must load before the plugin autoloader.
30 if ( file_exists( AATXT_ABSPATH . '/vendor-prefixed/autoload.php' ) ) {
31 require AATXT_ABSPATH . '/vendor-prefixed/autoload.php';
32 }
33
34 require AATXT_ABSPATH . '/vendor/autoload.php';
35
36 PluginBootstrap::init(AATXT_FILE_ABSPATH);
37