Cleaning Up Bot Registrations in WooCommerce

…or Optimizing Slow Sub-Queries in WordPress Bot registrations are a nuisance in many WooCommerce sites. Cleaning them up seems to be a trivial task: just delete all users without a placed order from a month ago and backwards. select * from wp_users where user_registered Okay, so we almost 50 thousand customers and a bit over …

ПодробнееCleaning Up Bot Registrations in WooCommerce

WordPress HTTPS to HTTP Cookie Error

After switching from HTTPS to HTTP (local development) WordPress may sometimes get stuck in the following error message: Cookies are blocked or not supported by your browser. The browser complains: This Set-Cookie was blocked because it was not sent over a secure connection and would have overwritten a cookie with the Secure attribute. The solution …

ПодробнееWordPress HTTPS to HTTP Cookie Error

bbPress Can’t Count

bbPress Can't Count

In a highly-concurrent high-load environment bbPress will not count the topics and replies correctly. This happens due to several race conditions in the code. While not a critical vulnerability, it’s annoying. I wonder how the dotorg forums keep the numbers accurate? Maybe they don’t and nobody cares 🙂 but it’s something I’ve been very passionate …

ПодробнееbbPress Can’t Count

W3TCache + nginx + subdirectories

W3TCache + nginx + subdirectories

This is a simple instruction on how to make W3Total Cache (version 0.13.1) work with nginx (version 0.14) and subdirectory installs. That is if you’re still doing subdirectories. In most cases WordPress Multisite/Network will do the job properly without having to fiddle with nginx configurations files and whatnot. Here we go. W3TC generates an nginx.conf …

ПодробнееW3TCache + nginx + subdirectories

The WordPress Meta “generator” Tag Paranoia

The WordPress Meta “generator” Tag Paranoia …or “WordPress Version Fingerprinting” I have read dozens of “How to secure your WordPress” articles, and one common “tip” among others is getting rid of the “generator” tag in the HTML head, for additional security through obscurity. WordPress uses the meta “generator” tag to “disclose” its version. The paranoia surrounding …

ПодробнееThe WordPress Meta “generator” Tag Paranoia

Another 7 Overlooked WordPress Helper Functions In a previous post we looked at 7 Overlooked WordPress Helper Functions. Today I’ll dig deep and find more helpful undocumented functions that WordPress uses internally that can be of help when developing plugins and themes. Leveraging code that is already available in the core, is maintained and simply works …

Подробнее