Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 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

 
discard

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.