WordPress Developer Ukraine, Kyiv
CSS @scope Rule: Scoped Styles Without Frameworks

CSS @scope Rule: Scoped Styles Without Frameworks

CSS @scope: styles that stay inside a component A rule like .card a { color: inherit; } also hits links in a newsletter form that someone places inside the card, and .prose p styles paragraphs in a nested block that should look different. BEM class names and growing specificity were the workarounds. @scope limits rules…
Details
WordPress Debug Logging and Developer Tooling Workflow

WordPress Debug Logging and Developer Tooling Workflow

A WordPress debugging setup per environment Debug settings are toggled in wp-config.php by hand, forgotten on, and then a production site shows notices to visitors or fills a public debug.log. A small setup decides everything from the environment type: on local and staging, full logging into a private file and visible errors where useful; on…
Details
PHP 8.4 Features for WordPress Plugin Development

PHP 8.4 Features for WordPress Plugin Development

PHP 8.4 for WordPress plugin developers PHP 8.4 (November 2024) has two features that change how classes are written, property hooks and asymmetric visibility, a set of small helpers like array_find(), and one deprecation that affects a lot of existing plugin code: implicitly nullable parameter types. A plugin that should run without notices on hosts…
Details
CSS Individual Transform Properties: translate, rotate, scale

CSS Individual Transform Properties: translate, rotate, scale

translate, rotate and scale as separate CSS properties transform is one property with a list of functions. A hover effect that only wants to scale a card has to repeat the card’s existing translate(), or it removes it; an animation of the rotation overwrites the position set elsewhere. The individual transform properties translate, rotate and…
Details
Linux OOM Killer and Swap Tuning for WordPress Servers

Linux OOM Killer and Swap Tuning for WordPress Servers

The Linux OOM killer and swap on a WordPress server When a Linux server runs out of memory, the kernel’s out-of-memory killer picks a process and kills it. On a WordPress server, the process with the most memory is usually MySQL, so the site goes down with “Error establishing a database connection”, although the real…
Details
MySQL Binary Log and Point-in-Time Recovery for WordPress

MySQL Binary Log and Point-in-Time Recovery for WordPress

Point-in-time recovery for WordPress with the MySQL binary log A nightly backup protects against losing everything, but not against losing a day. When a faulty plugin update or a wrong DELETE destroys data at 15:42, restoring last night’s dump also throws away every order and comment since midnight. MySQL’s binary log records every change; with…
Details