這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Admin Ajax dot php? No Thank You!

描述

Changes the wp-admin/admin-ajax.php endpoint to /ajax/
Adds an endpoint to the REST API at /wp-json/wp/v2/admin-ajax that behaves exactly as wp-admin/admin-ajax.php
– requires PHP 5.3

安裝

  1. Place /admin-ajax-dot-php-no-thank-you/ directory in /wp-content/plugins/
  2. Enable the rewrite or REST API endpoints and select a default, at Settings > admin-ajax.php Settings [wp-admin/options-general.php?page=admin-ajax.php-no-thank-you]
  3. Any place that calls admin_url( 'admin-ajax.php' ) from PHP or ajaxurl from JavaScript will automatically use the new default endpoint instead of /wp-admin/admin-ajax.php
  4. /wp-json/wp/v2/admin-ajax in the REST API is also available for receiving requests.

常見問題

Installation Instructions
  1. Place /admin-ajax-dot-php-no-thank-you/ directory in /wp-content/plugins/
  2. Enable the rewrite or REST API endpoints and select a default, at Settings > admin-ajax.php Settings [wp-admin/options-general.php?page=admin-ajax.php-no-thank-you]
  3. Any place that calls admin_url( 'admin-ajax.php' ) from PHP or ajaxurl from JavaScript will automatically use the new default endpoint instead of /wp-admin/admin-ajax.php
  4. /wp-json/wp/v2/admin-ajax in the REST API is also available for receiving requests.

評價

2018年5月27日
It is a brilliant workaround for websites that prevent you from accessing /wp-admin/ folder from the web.
閱讀全部1個評價

貢獻者及開發者

“Admin Ajax dot php? No Thank You!” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

修改日誌

0.6.0

  • set current_screen global so is_admin() returns true.

0.4.0

  • fix calls to admin_url(‘admin-ajax.php’) with query vars in the string

0.3.6

  • namespace functions

0.3.5

  • fix rest api nonce / authentication, debugger on admin page

0.3.0

  • initial admin settings

0.2.0

  • Move to class & autoload

0.1.0

  • Rest API endpoint added

.0.0.3

  • Prep for WP plugin directory

.0.0.2

  • Initial functionality, no settings

.0.0.1

  • Initial release