-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidation-api-settings.php
More file actions
27 lines (23 loc) · 949 Bytes
/
validation-api-settings.php
File metadata and controls
27 lines (23 loc) · 949 Bytes
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
<?php
/**
* Plugin Name: Validation API Settings
* Description: Admin settings page for the Validation API plugin. Adds a top-level menu page where site administrators can configure the level (error, warning, or disabled) of each registered validation check.
* Version: 1.0.0
* Requires at least: 6.5
* Requires PHP: 7.4
* Requires Plugins: validation-api
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: validation-api-settings
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'VALIDATION_API_SETTINGS_VERSION', '1.0.0' );
define( 'VALIDATION_API_SETTINGS_FILE', __FILE__ );
define( 'VALIDATION_API_SETTINGS_DIR', plugin_dir_path( __FILE__ ) );
require_once VALIDATION_API_SETTINGS_DIR . 'vendor/autoload.php';
add_action( 'plugins_loaded', function () {
$plugin = new ValidationAPISettings\Core\Plugin();
$plugin->init();
} );