How to pass variable to add_settings_section() callback?
I am attempting to automate, as much as possible, the Settings API function calls for each setting in a Plugin. Looping through the … Read more
I am attempting to automate, as much as possible, the Settings API function calls for each setting in a Plugin. Looping through the … Read more
In my plugin, I use the following code to retrieve an option from the database: $options = get_option(‘my_plugin_options’); If I use this 10 … Read more
I have a function like this: add_settings_field( ‘contact_phone’, ‘Contact Phone’, ‘settings_callback’, ‘general’); That works. It calls settings_callback. Cool. The problem I have with … Read more
I am developing a plugin using Tom McFarlin’s Boilerplate repository as a template, which utilizes OOP practices. I’ve been trying to figure out … Read more
When would it be appropriate to use the settings API, and when would it be better to use the theme customizer? Having Googled … Read more
What I would like to do is to add a few custom fields to the general settings. This is the code that I’m … Read more
I’m using the Wrox WordPress plugin development book as a primary reference for getting started with a new plugin and I understand all … Read more