How to use
<?php
/**
* Plugin Name: My Test Plugin
* Version: 1.0.0
* Requires at least: 5.7
* Requires PHP: 8.0
*/
// Load the Composer autoloader.
\is_file( __DIR__ . '/vendor/autoload.php' ) && require_once __DIR__ . '/vendor/autoload.php';
// Bootstrap the plugin (maybe)!
if ( dws_wp_framework_check_php_wp_requirements_met( '8.0', '5.7' ) ) {
// move ahead with plugin initialization
} else {
dws_wp_framework_output_requirements_error( 'My Test Plugin', '1.0.0', '8.0', '5.7', array( 'optional_argument' ) );
}Actions
Last updated