WP Plugin Starter 1.0.0: a fresh start
The parts every wpallstars plugin needs: settings screen with search and an empty General tab, Read Me tab, features as classes, replaced plugins, the shared GitHub updater, release and check scripts, CI and the shared rules. scripts/rename-plugin.sh starts a new plugin; scripts/sync-core.sh keeps plugins' core files in step with this starter. Built with aidevops (https://aidevops.sh).
This commit is contained in:
commit
2f91c3e6af
62 files changed
+10929
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* WP Plugin Starter admin loader.
|
||||
*
|
||||
* Loads the settings screen, the Read Me tab and the Plugins screen notes
|
||||
* for replaced plugins, then the plugin's own admin parts
|
||||
* (WPStarter_Setup::admin()). Included from the main plugin file for
|
||||
* admin requests only.
|
||||
*
|
||||
* @package WPStarter
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$wpstarter_admin_files = array(
|
||||
'admin/data/readme.php',
|
||||
'admin/includes/class-settings-manager.php',
|
||||
'admin/includes/class-readme-manager.php',
|
||||
'admin/includes/class-admin-manager.php',
|
||||
'admin/includes/class-replaced-plugins.php',
|
||||
);
|
||||
|
||||
foreach ($wpstarter_admin_files as $wpstarter_file) {
|
||||
require_once WPSTARTER_DIR . $wpstarter_file;
|
||||
}
|
||||
unset($wpstarter_admin_files, $wpstarter_file);
|
||||
|
||||
WPStarter_Admin_Manager::init();
|
||||
WPStarter_Replaced_Plugins::init();
|
||||
WPStarter_Setup::admin();
|
||||
Reference in new issue
Block a user