Our goal was to create a reuseable admin panel that can be used by various plugins without having to build or include classes of the same code in multiple plugins, while at the same time being quick to setup.
Download the example plugin to get up and running as quick as possible.
Yes, we do have it listed on the WordPress Repository. We had a few suggestions come our way and wanted to make it easier for those that wanted to contribute to making Reusable Admin Panel even more awesome.
- Bootstrap
- Font-Awesome Field Info Buttons and Sidebar Info Helper
- jQuery Dynamic Navigation
- Validation using validator.js
- Automatic sanitization and saving of options
- Method built to easily get individual options
- Settings Grouped Under One Option in Database (Saved as Multi-Dimensional Array)
- Bootstrap Spinner Preloader (Prevents Layout Shifting on Load)
- Removes notices from other plugins when displaying admin panel
- Prevent users from deactivating by displaying a sweetalert2 to deactivate the plugin using the dependency.
- Switch
- Text
- [NEW] Textarea
- URL
- Password
- Number
- Dropdown
- Date
- Time
- Color
- Dropdown Toggle - Additional fields can be added under a dropdown which show/hide based on selected option
- Button - Add multiple buttons that can link or be targeted in custom JS
- Backup WordPress
- Upload the plugin files to the
/wp-content/plugins/
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress
This is purely for developers to help streamline their development process by making it easier to produce a settings page for their plugins.
- Added: Textarea input
- Added: Callback to handle errors. Used when conditionally adding fields and needing an error to display.
- Bugfix: URL to have example url as placeholder instead of label
- Bugfix: Dropdowns to have Select Option as placeholder instead of the label
- Updated: Removed plugin name from panel h2
- Updated: Options panel to have a minimum height based on the height of tabs
- Bugfix: Labels for input-group-text not resizing properly
- Optimization: Restructured settings.js to be more readable
- Updated: Label styling to be next to the field for a cleaner look
- Bugfix: Tab indexing
- Bugfix: Handling of multiple fields for dropdown toggle
- Bugfix: Dropdown field not full width
- Added: dropdown_toggle field can add additional fields under a dropdown which show/hide based on selected option
- Added: Support for button fields
- Added: Support for custom JS to take advantage of button fields and other custom needs
- Added: Ability to use SweetAlert2 function in custom js
- Added: Plugin name to section titles
- Added: Ability to add classes to fields
- Optimized: Sanitization method
- Bugfix: Scroll to top on info button click
- Bugfix: Warning on initial activation
- Bugfix: Bootstrap 5 toggle button not displaying
- Bugfix: Default logo not showing if config is not set
- Initial Release