I have a ajax login widget on a wordpress site thing is only me and the other admin need to see It so I was wondering if there is a way to only serve this widget to my ip address and the other admin
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do so using .htaccess by allowing only certain IP addresses to access your wp-login.php
Update:
If you want to control who views the widget, you can use a conditional statement using PHP’s $_SERVER[‘REMOTE_ADDR’] to get the visitors IP address. If it matches some address, then you display the widget.