WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to find a way of adding a single checkbox to one of the existing options pages, most likely options-reading.php programmatically. Unfortunately, I haven't found any good references on this. Any thoughts from the community?

share|improve this question
up vote 1 down vote accepted

I just did some searching and found this in the codex:

add_settings_field( 'myprefix_setting-id', 'This is the setting title', 'myprefix_setting_callback_function', 'general', 'myprefix_settings-section-name', array( 'label_for' => 'myprefix_setting-id' ) );

Here is the link to the codex http://codex.wordpress.org/Function_Reference/add_settings_field

Looks as simple as choosing the right slug like 'general' to add an option to the general settings page.

I hope this points you in the right direction.

share|improve this answer
You, sir, are awesome. That and a little research led me to this, which solved my issue! – Ghost1227 Sep 6 '12 at 14:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.