Skip to contentSkip to main navigationSkip to footer
All the ajax calls in the frontend are made by the default URL /wp-admin/admin-ajax.php. This URL is also used by hackers to upload viruses and scripts on your website.
Changing the wp-admin/admin-ajax.php URL is mandatory for protecting the WordPress site from hackers.
To easily change the admin-ajax.php path you can use Hide My WP Ghost plugin. After adding a new ajax URL, the default admin-ajax.php URL will be hidden from hackers.
How to change admin-ajax in WordPress
- To change the admin-ajax.php path, go toHide My WP > Permalinks >Custom Ajax URL
- To hide the wp-admin path from ajax calls, switch onHide My WP > Permalinks >Hide wp-admin from ajax URL
Why you must have Hide My WP Ghost: https://hidemywpghost.com/hide-my-wp-why-you-must-have-it/
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.