PluginProbe
Auto Alt Text / 2.7.0
Auto Alt Text v2.7.0
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 / phpstan-bootstrap.php

phpstan-bootstrap.php in Auto Alt Text 2.7.0, at phpstan-bootstrap.php

25 lines 639 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * PHPStan bootstrap file
4 *
5 * This file defines constants that are normally defined in the main plugin file
6 * to allow PHPStan to analyze the code without errors.
7 */
8
9 // Define plugin constants for PHPStan
10 if (!defined('AATXT_FILE_ABSPATH')) {
11 define('AATXT_FILE_ABSPATH', __DIR__ . '/auto-alt-text.php');
12 }
13
14 if (!defined('AATXT_ABSPATH')) {
15 define('AATXT_ABSPATH', __DIR__);
16 }
17
18 if (!defined('AATXT_URL')) {
19 define('AATXT_URL', 'https://example.com/wp-content/plugins/auto-alt-text/');
20 }
21
22 if (!defined('AATXT_LANGUAGES_RELATIVE_PATH')) {
23 define('AATXT_LANGUAGES_RELATIVE_PATH', 'auto-alt-text/languages/');
24 }
25