This repository is an override from tareq1988/wordpress-settings-api-class with some new features
- Subsection field
- No padding on submit button
Instead of initializing as new WeDevs_Settings_API
like the original library, do it like:
new \ThanksToIT\WP_Settings_API\Settings_API()
;
To install this package, edit your composer.json
file:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/thanks-to-it/wp-settings-api"
}
],
"require": {
"thanks-to-it/wp-settings-api": "dev-master"
}
}
And don't forget to include the original library as well composer.json
file:
{
"require": {
"tareq1988/wordpress-settings-api-class": "dev-master"
}
}
A new subsection input type allowing to create a Subsection
array(
'name' => 'subsection_general',
'label' => __( 'My subsection', 'domain' ),
'desc' => __( 'Now we can have a subsection description too ;)', 'domain' ),
'type' => 'subsection'
),
On the original class, there is a anoying style="padding-left: 10px"
on submit button.
No more