{"repo":"YahnisElsts/ajax-wrapper","free":true,"listed":false,"github":"https://github.com/YahnisElsts/ajax-wrapper","clone":"git clone https://github.com/YahnisElsts/ajax-wrapper.git","description":"AJAX action wrapper for WordPress","language":"PHP","stars":21,"topics":["wordpress"],"license":null,"category":"workflow-automation","readme_excerpt":"AJAX Action Wrapper This helper library makes it easier to handle AJAX requests in WordPress plugins. Mainly for personal use. Example Define action: Call from JavaScript: Features - Automate common, boring stuff. - [x] Automatically pass the admin-ajax.php URL and nonce to JS. - [x] Define required parameters. - [x] Define optional parameters with default values. - [x] Automatically remove \"magic quotes\" that WordPress adds to $ GET , $ POST and $ REQUEST . - [x] Encode return values as JSON. - Security should be the default. - [x] Generate and verify nonces. Nonce verification is on by default, but can be disabled. - [x] Check capabilities. - [x] Verify that all required parameters are set. - [x] Validate parameter values. - [x] Set the required HTTP method. - Resilience. - [ ] Lenient response parsing to work around bugs in other plugins. For example, deal with extraneous whitespace and PHP notices in AJAX responses. - [x] Multiple versions of the library can coexist on the same site. Why not use the REST API instead? Backwards compatibility. In theory, this library should be compatible with WP 4.1+.","default_branch":null,"files":null,"tree":[],"storefront":"/r/YahnisElsts","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/YahnisElsts/ajax-wrapper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}