PHPackages                             devgeniem/wp-no-admin-ajax - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. devgeniem/wp-no-admin-ajax

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

devgeniem/wp-no-admin-ajax
==========================

A WordPress plugin that lightens the WP AJAX routine and directs the requests to front-end rather than admin back-end.

1.0.3(8y ago)3821.4k—7.4%12[2 issues](https://github.com/devgeniem/wp-no-admin-ajax/issues)1MITPHPPHP &gt;=5.6

Since May 4Pushed 7y ago10 watchersCompare

[ Source](https://github.com/devgeniem/wp-no-admin-ajax)[ Packagist](https://packagist.org/packages/devgeniem/wp-no-admin-ajax)[ RSS](/packages/devgeniem-wp-no-admin-ajax/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (8)Used By (1)

[![geniem-github-banner](https://cloud.githubusercontent.com/assets/5691777/14319886/9ae46166-fc1b-11e5-9630-d60aa3dc4f9e.png)](https://cloud.githubusercontent.com/assets/5691777/14319886/9ae46166-fc1b-11e5-9630-d60aa3dc4f9e.png)

WP Plugin: No-Admin-Ajax
========================

[](#wp-plugin-no-admin-ajax)

[![Latest Stable Version](https://camo.githubusercontent.com/58abb410882f2151ed52abc4e7dc67b8f9907d4e242dfa44bf223dfc4ad3e56a/68747470733a2f2f706f7365722e707567782e6f72672f64657667656e69656d2f77702d6e6f2d61646d696e2d616a61782f762f737461626c65)](https://packagist.org/packages/devgeniem/wp-no-admin-ajax) [![Total Downloads](https://camo.githubusercontent.com/1459417970d1fc99bb453b08957a530b60d4e30cc03a586200d4faa8617fb181/68747470733a2f2f706f7365722e707567782e6f72672f64657667656e69656d2f77702d6e6f2d61646d696e2d616a61782f646f776e6c6f616473)](https://packagist.org/packages/devgeniem/wp-no-admin-ajax) [![Latest Unstable Version](https://camo.githubusercontent.com/3458c11ba1d6515da6ad2438893f0af1d5c7b618a4dfd8b7ac50e9407d9d279b/68747470733a2f2f706f7365722e707567782e6f72672f64657667656e69656d2f77702d6e6f2d61646d696e2d616a61782f762f756e737461626c65)](https://packagist.org/packages/devgeniem/wp-no-admin-ajax) [![License](https://camo.githubusercontent.com/da2c92071ed83b533f9de3a401537cfcf5863225d642599357448e9fada48730/68747470733a2f2f706f7365722e707567782e6f72672f64657667656e69656d2f77702d6e6f2d61646d696e2d616a61782f6c6963656e7365)](https://packagist.org/packages/devgeniem/wp-no-admin-ajax)

A WordPress plugin that changes the WP AJAX routine and rewrites the ajax requests to custom url rather than `/wp-admin/admin-ajax.php` back-end.

Install
-------

[](#install)

Recommended installation to WP project is through composer:

```
$ composer require devgeniem/wp-no-admin-ajax

```

Use cases
---------

[](#use-cases)

- Rewrite all admin-ajax.php queries into custom url so you can allow `/wp-admin/` to only certain IP-addresses.
- You can use this to confuse bots which might try to use vulnerabilities in admin-ajax.php.

Configuration
-------------

[](#configuration)

### Variables

[](#variables)

This plugin url is by default `/no-admin-ajax/`. You can use filters to change it or you can set the default value by yourself by using:

```
// This turns the no admin ajax url to -> /ajax/
define('WP_NO_ADMIN_AJAX_URL','ajax');
```

**Notice:** Value set here can be filtered too, this just sets the starting point for the custom url.

**Notice 2:** After plugin installation and other changes be sure to refresh your permalinks by just going to Settings &gt; Permalinks &gt; and saving it without any modification.

### Hooks &amp; Filters

[](#hooks--filters)

You can customize the url by using filter `no-admin-ajax/keyword`.

```
