iabdelhay / wp-admin-toolkit-pro
A foundational package for WordPress to manage settings and forms.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- php: >=7.4
This package is auto-updated.
Last update: 2024-11-17 00:21:55 UTC
README
A foundational package for WordPress to manage settings and forms.
Installation
Using Composer
-
Add the package to your Composer project:
composer require iabdelhay/wp-admin-toolkit-pro
-
Include the autoloader in your WordPress plugin setup:
require_once __DIR__ . '/vendor/autoload.php';
-
Initialize the plugin:
$plugin = new WPAdminToolkitPro\Bootstrap(); $plugin->run();
Usage
Adding Settings
To add custom settings, use the SettingsManager
class:
add_action('wp_atk_pro_loaded', function() { $settingsManager = new WPAdminToolkitPro\Settings\SettingsManager(); $settingsManager->registerSection('wp_atk_pro_settings', 'custom_section', 'My Custom Settings'); $settingsManager->addSettingField('wp_atk_pro_settings', 'custom_section', 'custom_setting', 'My Custom Setting'); });