WordPress Developer Ukraine, Kyiv
Query Monitor: Diagnosing Slow Queries and Hooks in WordPress

Query Monitor: Diagnosing Slow Queries and Hooks in WordPress

Query Monitor: find what makes a WordPress page slow A slow page has a cause somewhere between the database, PHP code, hooks and external HTTP requests. Query Monitor is a free debugging plugin that shows all of this for the current request in a panel under the admin bar: every database query with its time…
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…