New user notification issue

In your email code you’re using mail PHP function, whereas WordPress uses its own internal wp_mail function that then sends the email using PhpMailer (for many different reasons) .. which should be using PHP’s mail fn but there’s a number of different things that could be causing problems. You can also install the “WP Mail … Read more

Send email when a user registers Rest api

You don’t know the type of content that might be passed for the $user parameter, so let’s test it out. You will want to expand on these conditions and responses. This is just an example of the tests you probably want to make. function user_registered( $user ) { // Check to make sure it’s not … Read more

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