- Access the JSON File: Locate the
settings.json
file inside your plugin’s ZIP folder. Extract the ZIP file and navigate to thejson
directory to find it. - Understand the Structure: The JSON consists of different sections representing settings groups, such as
google_settings
. Each section contains:- A title
- An option group
- An option name
- Fields with labels and types
- Edit Fields: You can add or modify fields within each section. For example:jsonCopy code
"aif_new_field": { "label": "New Field", "type": "text" }
- Add New Sections: Duplicate an existing section and modify the title, option group, and fields to create a new settings tab.
- Save Changes: After making your edits, save the
settings.json
file. - Re-zip and Install: Compress your plugin directory back into a ZIP file and upload it to WordPress.
Always backup the original settings.json
file before making changes. This documentation allows anyone to customize their plugin’s settings after downloading the initial version.