PHPackages                             alexsancho/wp-admin-no-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. alexsancho/wp-admin-no-ajax

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

alexsancho/wp-admin-no-ajax
===========================

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

v1.0.0(8y ago)1931MITPHPPHP &gt;=5.6

Since Feb 9Pushed 8y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

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

[](#wp-plugin-admin-no-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 alexsancho/wp-admin-no-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 `/admin-no-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_ADMIN_NO_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 `admin-no-ajax/keyword`.

```
