Blog Archives

Log WordPress Database Queries To File

Useful to see what changes are made in the WordPress database by a plugin, theme or other code. Add this to functions.php

Posted in WordPress Tagged with:

Convert WordPress Image Filename To Lowercase

WordPress by default will preserve capitalisation in filename for images. To make filenames lowercase automatically, add the following to the functions.php of your active theme.

Posted in WordPress Tagged with: ,

Easily Find ID of Post, Page or Product In WordPress

The easiest way to find the Post ID, Page ID or Product ID in WordPress is to hover over the post in WordPress admin and check the link. The number after post= and before & is the post ID. You

Posted in WordPress Tagged with: ,

.htaccess For WordPress In A Folder Without URL Change

For quick reference. Remember to change my_subdir and example.com Reference: Giving WordPress Its Own Directory

Posted in WordPress Tagged with: ,

Disable WooCommerce Marketing menu

Add the following code to the functions.php of your active theme. add_filter( ‘woocommerce_marketing_menu_items’, ‘__return_empty_array’ ); This will remove the following Marketing menu added in WooCommerce 4.0

Posted in WordPress Tagged with: ,