0

I'm new in php so I'm still not good enough to make improvements in this php file This php file sends mail alerts to the site admin, I want to change it.

  1. I want to add my email instead of admin email

it seems to be this line 556

    ` $admin_email = is_limit_login_multisite() ? get_site_option('admin_email') : get_option('admin_email');

@wp_mail($admin_email, $subject, $message); `

https://wordpress.org/plugins/limit-login-attempts/

1
  • 2
    This appears to be 2, not 1 question, this is a Q&A site not a discussion forum, ask each question separately. Click the edit button and remove one, then put it in a new question using the ask question link in the top menu
    – Tom J Nowell
    Commented Apr 7, 2015 at 22:34

1 Answer 1

0

Just replace this line:

$admin_email = is_limit_login_multisite() ? get_site_option('admin_email') : get_option('admin_email');

with : $admin_email = '[email protected]'

But I don't recommend hardcoding the email address.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.