Tag Info

New answers tagged

0

After even more searching I've found an answer to this question here. I used the update_option_{$option_name} action to do what I needed.


0

Use http://codex.wordpress.org/Settings_API to add new setting to existed group "general": add_action( 'admin_init', 'register_my_setting' ); function register_my_setting() { add_settings_field('foo', 'Foo settings', 'foo_function', 'general', 'default', array('label_for' => 'foo')); register_setting('general', 'foo', 'foo value'); } function ...


0

qd_button-settings-group is a settings group, not an option. Use get_option for both items: get_option('qd_button_color_list'); get_option('qd_button_text_color_list');



Top 50 recent answers are included