CORS & Remote access to WP via RestAPI
CORS & Remote access to WP via RestAPI
CORS & Remote access to WP via RestAPI
REST API custom endpoint without authentication for POST method?
using woocommerce_template_single_add_to_cart in shop-loop – javascript issues [closed]
Continue execution after WP REST API response
This all works perfectly, but it seems too easy. Should I be passing a nonce along somewhere? No It seems like apiFetch has some middlewares that include a nonce – is this all done for us by default? Yes. If your endpoint requires a nonce and apiFetch did not provide it, then apiFetch would not … Read more
I stumbled upon this question long after it was asked – but for the sake of all readers in search on how to use this indeed poorly documented function, here is my answer: Do not use addEntities in the filter. It is not the same logic as in PHP backend. Putting it into BlockEdit filter … Read more
WordPress blog posts api – get posts by author
Formating content rendered from wordpress REST API as JSON and not HTML
Testing custom API endpoint with class dependency
The dynamic wp_ajax_ hooks serve mostly organizational convenience on PHP side. You could choose not to use it, then you would probably have to: hook into admin_init check that DOING_AJAX is true check that request ($_REQUEST[‘action’] and rest of it) is your special kind of request Then either process your request and die() or let … Read more