Can we validate user email changes?

You can use this hook to send a mail to your old email address <?php add_action( ‘profile_update’, ‘my_profile_update’, 10, 2 ); function my_profile_update( $user_id, $old_user_data ) { //Load new user data by uid and compare with old data // Email code about profile changes } ?> I think this should work for you.

Plugin option for input box validation

You want to set the input’s type to number for numeric validation. And use the input’s value to set a default value. <input type=”number” id=”title” name=”my_option_namePlugin option for input box validation” value=123 /> If you just want a hint displayed to the user inside the input, use placeholder. <input type=”number” id=”title” name=”my_option_namePlugin option for input … Read more

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