Incorporating the Settings API in WordPress Themes – by Chip Bennet

You should include your options-register-defaults.php to make the callback available. function chr_settings() { require_once ‘options-register-defaults.php’; // add path to file /* register_setting( $option_group, $option_name, $sanitize_callback )- Associates an option group passed to settings_fields with database entry */ register_setting( ‘mycustom_options’, ‘mycustom_options’, ‘ch_options_validate’ ); add_settings_section(‘ch_settings_defaults_style’, ‘Style Options’, ‘ch_settings_defaults_style_section_text’, ‘mycustom’); }

Comment Blacklist

I just did a quick test and the comment blacklist appears to be ignored for logged in administrators (possibly other roles). It does effectively block comments when logged in as a subscriber. I suspect that that is the behavior you are seeing.

Building a simple “settings” plugin to change textstrings on the home page

As I understood you correctly you just want to rename ‘kkpo_quote’ and you have conflict. Not to have conflict try to replace all ‘kkpo_quote’ with same name, for example: if you replace ‘kkpo_quote’ with ‘new_quote’ in register_setting(KKPLUGINOPTIONS_ID.’_options’, ‘new_quote’); then make sure that you replace it with ‘new_quote’ where ever is ‘kkpo_quote’ There is 7 times … Read more

Options page for widget

Your widget is part of a plugin (per the first sentence of the question), so what you are really talking about is making a plugin administration page, which you would do with add_menu_page, add_submenu_page, or one of the more specialize menu page functions. That is the nutshell version of the answer. There are a lot … Read more

How do I capture the selected option and pass in sending the registration form?

Way use jQery to populate the select field when you can use filter and hook into the form using PHP eg: //1. Add a new form element… add_action(‘register_form’,’_register_form_wpa103118′); function _register_form_wpa103118 (){ $name_of_select = ( isset( $_POST[‘name_of_select’] ) ) ? $_POST[‘name_of_select’]: ”; $options = array( ‘Medicine’ => ‘Medicine’, ‘Option2’ => ‘Option2’, ); ?> <p> <label for=”name_of_select”><?php … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)