Options Class for WordPress plugins & themes
- The warning during plugin activation has been fixed.
- Extra description for buttons has been removed.
- Loading assets has been fixed.
- The
date()
function has been replced by thegmdate()
function. - The select2 jQuery libray has been updated to 4.0.13.
- The deprecated
null
value in theadd_option()
function has been replced by''
.
- The warnig for regex check on null value has been fixed.
- The warning creation of dynamic property in the class has been fixed.
- One the data escaping has been removed.
- The empty
index.php
file has been added to few directories. - The issue with undefined variable has been fixed.
- Data input sanitization has been added.
- Escaping has been added.
- The creation of dynamic property has been removed. It causes a warning in PHP 8.2. Props for waveman777.
- Select2 images has been optimized.
- Fixed PHP < 8 error.
- Fixed
last_used_tab
. - Fixed
udefined
content in tabs. - Improved admin responsibility. Props for tanohex.
- Added
placeholder
into few fields. - Added
aria-label
into few fields. - Refreshed used WP classes.
- Update
image
field to new WP Media API.
- Added maxlenght param to text field.
- Fixed data get for older plugins.
- Added two debug values to better debuging.
- Unify data get - it missed dynamic added options.
- Added check for assets enqueue to avoid unnecessary loads.
- Updated jQuery-UI.
- Shorted ui-slide select to max 150px.
- Added missing icons for datepicker.
- Fixed remove default value from database.
- Added
flush_rewrite_rules
to configuration. - Added field type
button
.
- Implemented
checked()
function.
- Implemented WordPress PSR.
- Added options to money field.
- Added few checks to avoid wrong key warning.
- Added field type
location
.
- Added CSS for tabs.
- Added 'before' and 'after' strings for input() function.
- Added check for
select()
function. Now we can use array or string as value. - Added methods: number, button, submit and hidden to allow create those form elements.
- Allow using simple array for radio options.
- Handle "theme" mode to fix assets URL.
- Added ability to produce
hidden
name, prefixed by underscore. - Fixed prolblem with warning. Props for Michał
- Handle
checkbox
, andswitch_button
fields. - Improved submenu building.
- Added $option['options'] sanitization.
- Fixed a problem with classes for textarea tag.
- Fixed problem with jQuery UI slider, there was 100 as default for min value.
- IMPROVMENT: added slide for checkboxes.
- IMPROVMENT: added select2.
- IMPROVMENT: added indivudual functions to render elements.
- IMPROVMENT: added ability to create option page in any point of menu
- IMPROVMENT: added meta boxes
- IMPROVMENT: added page load hook
- IMPROVMENT: added script enqueue
- IMPROVMENT: added build-in option page
- IMPROVMENT: integrate tabs display (no more external js in theme or plugin)
- BUGFIX: fix remebering last used tab for theme usage
- IMPROVMENT: init can read both setting: plugin & themes
- IMPROVMENT: add option array filter
- IMPROVMENT: add method to register settings without prefix
- BUGFIX: default value only when is need
- IMPROVMENT: added remove two options to "decativate plugin" function
- IMPROVMENT: added email type input
- BUGFIX: repair some php warnigs
- IMPROVMENT: added filter to change options
- IMPROVMENT: added get_option_group function
- IMPROVMENT: added helper for wp_dropdown_categories
- IMPROVMENT: added helper for wp_dropdown_pages
- BUGFIX: repair get_option, to prevent return always default if null
- IMPROVMENT: added force_default to get_option method
- IMPROVMENT: add min/max attributes to filed type "number"
- IMPROVMENT: add get_option_name method