What esc_ to use to validate this?

esc_url is the correct function to escape links -> https://codex.wordpress.org/Function_Reference/esc_url – if it’s not working correctly then double check the actual output of your variables to make sure they are in fact links. But selling links in your themes via “sponsored” links is not something I would ever recommend anyone doing which from the code … Read more

How to force field validation first, then its values saved durning edit profile?

Unfortunately I didn’t receive any reply. I did it a little different … and it works. I just combine them both and I have that result which works fine. add_action( ‘user_profile_update_errors’, ‘validate_steamid_field’ , 10, 3); function validate_steamid_field(&$validation_errors, $update = null, &$user){ if ( isset( $_FILES[‘custom_avatar’] ) && !empty($_FILES[‘custom_avatar’]) && file_exists($_FILES[‘custom_avatar’][‘tmp_name’]) ) { //we check if … Read more

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