1. Go to this page and download the library: Download youniwemi/wp-settings-kit library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
youniwemi / wp-settings-kit example snippets
$options =
[
'name' => 'MY_AWESOME_FEATURE',
'title' => 'My Awesome Feature',
'description' => "My Awesome Feature description",
'side_panel' => "<p>A side Panel content : to add some explanations if necessary</p>",
'fields' => [
[
'id' => 'ACTIVE',
'type' => 'checkbox',
'title' => 'The feature is active' ,
],
[
'id' => 'FIRST_SETTING',
'type' => 'number',
'title' => 'First setting' ,
'default' => 0 ,
// This setting will be
$options =
[
'name' => 'MY_AWESOME_FEATURE',
'title' => 'My Awesome Feature',
'fields' => [
[
'id' => 'ACTIVE',
'type' => 'checkbox',
'title' => 'The feature is active' ,
],
[
'id' => 'FIRST_SETTING',
'type' => 'number',
'title' => 'First setting' ,
'default' => 0 ,
// This field will be
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.