Title: Admin-ajax javascript in header
Last modified: August 21, 2016

---

# Admin-ajax javascript in header

 *  Resolved [telwp](https://wordpress.org/support/users/telwp/)
 * (@telwp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/admin-ajax-javascript-in-header/)
 * I noticed this plugin puts the following within the header of every page, regardless
   of whether the page is using the plugin features.
 *     ```
       <!-- ThirstyAffiliates -->
       <script type="text/javascript">
       	var thirstyAjaxLink = "http://www.mydomain.com/wp-admin/admin-ajax.php";
       </script>
       ```
   
 * Is this purely for the backend admin pages or does it serve a purpose on the 
   front end? Either way, I’d rather not advertise my wp-admin directory publically..
   can it be removed?
 * Thanks
 * [http://wordpress.org/extend/plugins/thirstyaffiliates/](http://wordpress.org/extend/plugins/thirstyaffiliates/)

Viewing 1 replies (of 1 total)

 *  [Josh Kohlbach](https://wordpress.org/support/users/jkohlbach/)
 * (@jkohlbach)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/admin-ajax-javascript-in-header/#post-3945787)
 * Hi telwp,
 * Thanks for the note. This was used previously, but should have been taken out
   when the old functionality was removed.
 * We’re pushing an update on Monday morning so I’ll be sure this is included. Will
   be removed from 2.2.2 onwards.
 * Cheers,
    Josh

Viewing 1 replies (of 1 total)

The topic ‘Admin-ajax javascript in header’ is closed to new replies.

 * ![](https://ps.w.org/thirstyaffiliates/assets/icon-256x256.jpg?rev=2686825)
 * [ThirstyAffiliates - Affiliate Links, Link Branding, Link Tracking & Marketing Plugin](https://wordpress.org/plugins/thirstyaffiliates/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/thirstyaffiliates/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/thirstyaffiliates/)
 * [Active Topics](https://wordpress.org/support/plugin/thirstyaffiliates/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/thirstyaffiliates/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/thirstyaffiliates/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Josh Kohlbach](https://wordpress.org/support/users/jkohlbach/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/admin-ajax-javascript-in-header/#post-3945787)
 * Status: resolved