WordPress Developer Ukraine, Kyiv
WordPress HTTP API: wp_remote_get and wp_remote_post Best Practices

WordPress HTTP API: wp_remote_get and wp_remote_post Best Practices

WordPress HTTP API: wp_remote_get() and wp_remote_post() best practices The WordPress HTTP API (wp_remote_get(), wp_remote_post(), wp_remote_request()) wraps the transport (cURL or PHP streams) in one interface with the same arguments and the same response format everywhere. Used carelessly it gives silent failures, hung pages and API rate limits; used well it needs four habits: check errors,…
Details
MySQL InnoDB Buffer Pool Tuning and Monitoring

MySQL InnoDB Buffer Pool Tuning and Monitoring

InnoDB buffer pool for WordPress: size it, then check that it works The InnoDB buffer pool is MySQL’s memory cache for table and index pages. When the working set of a WordPress database (the posts, the meta, the options, the WooCommerce lookup tables that are actually read) fits into it, queries are served from RAM.…
Details
Building WordPress REST API Controllers with WP_REST_Controller

Building WordPress REST API Controllers with WP_REST_Controller

REST API controllers with WP_REST_Controller A plugin’s first REST route is usually a register_rest_route() call with a closure. By the fifth route, permission checks, argument definitions and response formatting are copied around, and ?_fields= or context=edit do not work like in core routes. Core’s own endpoints are built on WP_REST_Controller, and a plugin can extend…
Details