“The WordPress 4.6 dashboard now takes advantage of the fonts you already have, making it load faster and letting you feel more at home on whatever device you use.” Great… but NO. I really don’t like to see Segoe UI (native font from Windows) in my WordPress dashboards so this small plugin brings back the […]
You can check if a user has bought an item by using “woocommerce_customer_bought_product” built-in function. The function has 3 parameters: It can be used in a shortcode, for example you can show private content just for those who already bought the product. Call the shortcode in post content: Advice: don’t use it too often because […]
These days I needed to extend the lifespan of the authentication cookie and after a few minutes of research I’ve found out that we can apply a filter to change it. You can also extend the lifespan only if the user has checked the “Remember Me” on login page (next snippet). Keep in mind that […]
As you may know… WordPress has introduced automatic updates since 3.7 version. But I have to admit that I’m a freak control and I’ve searched some ways to disable automatic updates. 1. Disable using wp-config.php 2. Disable using functions.php of your theme I recommend the first method because it’s not theme-dependent as the second one.
Sometimes it’s a must to disable update notification for certain plugins because you don’t want to overwrite the modifications you did before. Maybe it’s not a best practice, but this could be the best solution in some cases.
The idea of tracking 404 errors started from here (first posted by WP Mix). The only problem is that you will receive an email for each 404 error and I think it’s quite annoying. My little plugin saves the errors into a mySQL table and sends daily (hourly, twicedaily) email alerts (using WordPress cron system). […]
Every time you upload a new image, WordPress saves that image in many sizes by default. There are times when we don’t really need those thumbnails (eg: our theme uses custom sizes) and I think it’s much better delete them because they occupy space on the server for nothing. Here’s a way to disable default […]