Allow Admin-ajax.php. With this article i will highlight why you need to Allow Admin-ajax.php. Allow: /wp-admin/admin-ajax.php is also one of the top asked question. It is not only you who tried to research for this. I am sure, most of you guys will not be even having any idea about what this file is all about. Don’t worry guys, i will try to highlight the use of admin-ajax.php in wordpress.
Allow Admin-ajax.php
What is Admin-ajax.php
Admin-ajax.php is a wordpress specific code file that allows WordPress to communicate between the web-browser and the server. With Admin-ajax, wordpress uses /wp-admin/admin-ajax.php
to run AJAX calls from the web-browser which keeps track of what is going on in the dashboard. To elaborate, as soon as you login on your site dashboard or perform any action like plugin install or anything, you will immediately see a request for admin-ajax.php
in your logs.
Benefits when you Allow Admin-ajax.php
You should allow admin-ajax.php because some of the plugins might be using the file. When you install third party plugins, most of them uses the heartbeat file admin-ajax.php. The benefits and the main advantage when you allow admin-ajax.php is that if the crawler fetches for some plugin file, it is not stopped to fetch another linked file.
Also Read
The benefits when you add Sticky sidebar in adsense.
Steps to Allow Admin-ajax.php
- Log in to your WordPress website and install Yoast SEO plugin.
- Enable the Advanced Settings of the plugin.
- In Menu Section of wordpress dashboard, go to SEO -> Tools -> File file Editor and Edit the Robots.txt file.
- Now Add the code
Allow: /wp-admin/admin-ajax.php
in the opened file. - Save the new changes.
Important
It is easy to edit the Robots.txt file. Make sure, you always backup your website before you change any part of the code. You can contact me anytime if you feel to make any change in your website. I will love to assist you. Also, do share the feedback how easy was it to proceed with editing the Robots.txt file.