Tagged Questions
4
votes
1answer
640 views
How to pass arguments from add_settings_field() to the callback function?
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 this is: ...
4
votes
2answers
878 views
Add_settings_field() parameterizing callback?
I'm trying to create a rather large and extensive settings page with various options of very similar type.
Since there will be about 20 different fields, and the differences between most of those ...
0
votes
1answer
407 views
Using call_user_func() within add_settings_section() within a Class
I am trying to add_settings_section() by supplying a callback with parameter as follows:
class warpress_progression_plugin {
function warpress_progression_plugin() {
$this->__construct();
...