why is unregister_setting() undefined?

That function is only available from the wp-admin section of the site. The file that contains it is only loaded as part of the wp-admin. You need to wrap it in a hook function: function unregister_users_can_register_setting() { unregister_setting(‘general’, ‘users_can_register’); } add_action(‘init’, ‘unregister_users_can_register_setting’);

Classes and functions involved in serialization and unserialization

WordPress uses maybe_serialize() and maybe_unserialize(). Both of them use PHP’s native serialize() and unserialize() functions. See: http://phpxref.ftwr.co.uk/wordpress/wp-includes/functions.php.source.html#l1028 http://phpxref.ftwr.co.uk/wordpress/wp-includes/functions.php.source.html#l222 Both of those functions make use of the function is_serialized(), which checks if the variable is serialized yet. See: http://phpxref.ftwr.co.uk/wordpress/wp-includes/functions.php.source.html#l222

Can’t save checkbox option

Not sure where you’re adding this functionality, but I don’t see anywhere in this code where you use the update_option() function. Above your form HTML you should check if the form has posted data, then update the option. //Do nonce checking here and $tweak = $_POST[‘tweakfunction1’] ? $_POST[‘tweakfunction1’] : ”; update_option(‘tweakfunction1’, esc_html($tweak)); WordPress includes a … Read more

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