How to send AJAX requests in a WordPress theme or plugin - How to send AJAX requests in a WordPress theme or plugins

How to send AJAX requests in a WordPress theme or plugins

AJAX enables tasks such as fetching, inserting and deleting records from a MySQL database, as well as file uploading. AJAX sent URL should be admin-ajax.php. wp_ajax action hooks. Here are well-explained tutorials from Yogesh Singh on how to send AJAX requests from a WordPress theme and a WordPress plugin:

js css files wp plugins - How to setup JS and CSS environment files for WordPress plugin development

How to setup JS and CSS environment files for WordPress plugin development

I got the method I’ll describe below from Krasen Slavov, who shared it on his blog wprotary.com back in December ’21, and I’ve been using it for my WordPress plugins ever since. If you require anything more complicated with eslint, stylelint, and PHP standards, I recommend using Composer + nodeJS, or looking into Gulp. Requirements … Read more

Cache REST API responses and speed up WP REST API requests - Cache REST API responses and speed up WordPress REST API requests

Cache REST API responses and speed up WordPress REST API requests

When using WordPress REST API each request is processed by WordPress and depending on the size of the database and server performance, issues start occurring for high-traffic websites. By using a plugin such as WP REST Cache you can cache the responses of the REST API, making it much faster. Then if you want to … Read more