Adding a ‘featured’ filter to WooCommerce products screen
As usual add this code to your functions.php
Filtering only featured products comes in handy in several scenarios especially reordering them
As usual add this code to your functions.php
Filtering only featured products comes in handy in several scenarios especially reordering them
for ((i=1; i<=5; i++)); do history -d $(history 1 | awk ‘{print $1}’); done to get rid of the last 5 lines / commands
Protip: 💡You can use | pipes to preview multiple fonts at once. Backstory: There I was trying to choose a font that I can use as a logotype out of a few candidates I noticed Google fonts has no option to “select” some fonts so that I can view them all at once. So intuitively…
In order to optimize Apache’s configuration we needed “Average and Peak Number of Concurrent Connections” but we didn’t have an external software like Prometheus or Zabbix to record and analyze historical data. So we needed to find a way with what we had at hand. First comes to mind: Daily Process Log in WHM: This…
As usual add it to your functions.php and adjust as needed
Here is the script its pretty self-explanatory on its own. Will expand on it later
Moving a WordPress site from your main domain to a subdirectory (like from site.com to site.com/mirror/) is a common task for developers working on staging environments or site redesigns. However, simply copying files isn’t enough—you need to update your database to reflect the new URL structure. Here’s your comprehensive guide to making this transition smoothly….