Repository navigation
2.0.0
Breaking Changes
This version contains breaking changes from previous versions. We aimed to preserve full backward compatibility, but doing so would have added unnecessary complexity and made the codebase harder to maintain. Instead, we’re limiting potential breaking changes to major releases only. This update simplifies the foundation and makes it possible to support features like sub-fields within sub-tabs in the future. You will need to migrate your plugins to this version manually and test for compatibility. The main change is adding icons to navigation tabs. You'll need to update your fields property to account for this. For example:
$this->fields = array(
'general' => array(
array(
'name' => __('Enabled', $this->plugin_slug),
'type' => 'switch',
'default' => false,
),
You would need to move your options under the fields key like this:
$this->fields = array(
'general' => array(
'icon' => 'gear-fill',
'fields' => array(
array(
'name' => __('Enabled', $this->plugin_slug),
'type' => 'switch',
'default' => false,
),
You can also exclude the 'icon' key if you don't want to use icons, but if you want to use icons you can pull it from Bootstrap Icons.
Installation
The easiest way to install Settings Class for WordPress is via composer within your /wp-content/plugins/test-plugin/ directory:
composer require polyplugins/settings-class-for-wordpress
See readme for more information on installation.
Changelog
- Added: Composer
- Added: Ability to use icons in tab navigator
- Added: Bootstrap Icons
- Added: All the features from latest Reusable Admin Panel so code base is current
- Bugfix: Dropdown select preventing load
- Removed: Font Awesome Icons