Moved admin files to their own directory, trying to get a comprehensive structure in place
This commit is contained in:
@ -20,7 +20,7 @@ use eftec\bladeone\BladeOne;
|
||||
* Update URI: https://example.com/my-plugin/
|
||||
* Version: 1.0.0
|
||||
* Requires at least: 5.2
|
||||
* Requires PHP: 7.2
|
||||
* Requires PHP: 7.3.0
|
||||
* Author: Plugin Author
|
||||
* Author URI: https://plugin-author.com
|
||||
* Text Domain: nmsp-plugin-name-text-domain
|
||||
@ -37,9 +37,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
* Start at version 1.0.0 and use SemVer - https://semver.org
|
||||
* Rename this for your plugin and update it as you release new versions.
|
||||
*/
|
||||
define( 'PLUGIN_NAME_VERSION', '1.0.0' );
|
||||
if ( ! defined( 'PLUGIN_NAME_VERSION' ) ) {
|
||||
define( 'PLUGIN_NAME_VERSION', '1.0.0' );
|
||||
}
|
||||
|
||||
if ( ! defined('NMSP_PLUGIN_BASE_DIR') ) {
|
||||
define( 'NMSP_PLUGIN_BASE_DIR', __DIR__ );
|
||||
}
|
||||
|
||||
define( 'NMSP_PLUGIN_BASE_DIR', __DIR__ );
|
||||
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
require_once __DIR__ . '/bootstrap.php';
|
||||
@ -54,5 +59,6 @@ $blade = new BladeOne( __DIR__ . '/templates', __DIR__ . '/cache/blade', $mode )
|
||||
|
||||
register_activation_hook( __FILE__, array( App::class, 'plugin_activation' ) );
|
||||
register_deactivation_hook( __FILE__, array( App::class, 'plugin_deactivation' ) );
|
||||
register_uninstall_hook( __DIR__ . '/uninstall.php', 'run_uninstaller' );
|
||||
|
||||
nmsp_plugin_app()->load_blade( $blade );
|
||||
|
Reference in New Issue
Block a user