WordPress Developer Ukraine, Kyiv
WP-Cron Deep Dive: Reliable Scheduled Tasks in WordPress

WP-Cron Deep Dive: Reliable Scheduled Tasks in WordPress

WP-Cron in depth: reliable scheduled tasks in WordPress WP-Cron is a pseudo-cron: there is no daemon. On page loads WordPress checks the list of scheduled events (the cron option), and if one is due, it sends a non-blocking request to wp-cron.php, which runs the events in the background. On a site with constant traffic this…
WordPress 6.4 New Features and Block Editor Improvements for Developers

WordPress 6.4 New Features and Block Editor Improvements for Developers

WordPress 6.4 for developers: Block Hooks, admin notices and options WordPress 6.4 (November 2023) is a release that looks small for users: a new default theme Twenty Twenty-Four, a lightbox for images, pattern categories. For developers it brought a few APIs that replace old workarounds: Block Hooks to insert a block into themes, two functions…
Implement TOTP Two-Factor Authentication in WordPress Without a Plugin

Implement TOTP Two-Factor Authentication in WordPress Without a Plugin

Implement TOTP two-factor authentication in WordPress without a plugin Time-based one-time passwords (TOTP, RFC 6238) are what authenticator apps (Google Authenticator, Authy, 1Password) generate: a 6-digit code computed from a shared secret and the current time in 30-second steps. The server runs the same algorithm, so no third-party service is involved. A stolen or reused…
Cache Expensive Operations with the WordPress Transients API

Cache Expensive Operations with the WordPress Transients API

Cache expensive operations with the WordPress Transients API The Transients API stores cached data with an expiration time. The same set_transient() and get_transient() calls use the wp_options table on a default install and memory (Redis, Memcached) when a persistent object cache is active, without any code changes. Good candidates are remote API responses, heavy WP_Query…