How to move setting field up a row on general page?

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 foo_function() { echo ‘<input name=”foo” id=”foo” value=”” class=”regular-text ltr”>’; } You must modify function to validate input and to show saved value.

Unregister Settings Error

If you look at the source of add_settings_error(), you will see that the errors are stored in the $wp_settings_errors global. So in your tearDown() function, you can do this: $GLOBALS[‘wp_settings_errors’] = array(); Also, don’t forget to call parent::tearDown(). I sometimes forget, and it can lead to strange behavior. 😉

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