Skip to main content

Knowledge Base

Woocommerce: list all products without a shipping class

Information originally found here: https://shanegowland.com/advanced-woocommerce/2018/how-to-find-woocommerce-products-without-a-shipping-class/ Just create a new PHP file in wp-content/plugins with the following code: <?php /** * Plugin Name: Find Products Without Shipping Class * Desc…

How to add a ‘remove from category’ bulk editing option for products in Woocommerce

Original information from: https://www.businessbloomer.com/woocommerce-bulk-edit-remove-product-categories-admin/ All you need to do is add the following code to your theme’s functions.php file: /** @snippet Bulk Remove Product Categories @ WooCommerce Products Admin @how-to businessb…

Disable MFA for Microsoft 365 accounts

Microsoft Entra admin centre go to Home | Security | Multifactor authentication Scroll down the page to the ‘Security defaults’ section then click on ‘Manage security defaults’ and change the setting there.

Migrating sites from one cPanel server to another

Update MX records on old server to mx1.krystal.co.uk / mx2.krystal.co.uk Copy sites to new server If site uses SpamExperts, on new server click on ‘Toggle Protection’ for the site twice on new server Update nameservers on domain Test sites – remove PHP settings from .htaccess file…

Tim – referrals

When a new referral has signed up, need to update ticket #25913 and also add £70 credit to his WHMCS account.

Cron to automatically delete e-mails

This cron will automatically delete e-mails from the Sent folder older than seven days find /home/[cpanelusername]/mail/[domain]/[e-mail account]/[folder]/cur -type f -ctime +7 -exec rm -f {} \; Replace items in the square brackets with the account / folder details e.g. find /home/adminle…

Bulk remove Woocommerce products from categories

Add this code to your theme’s functions.php file /** * @snippet Bulk Remove Product Categories @ WooCommerce Products Admin * @how-to businessbloomer.com/woocommerce-customization * @author Rodolfo Melogli, Business Bloomer * @compatible WooCommerce 8 * @community…

Create a WordPress admin user via FTP

https://www.kevinleary.net/blog/wordpress-create-admin-user-php

Copy e-mails from an Office 365 account to an IMAP account

To do this, set up both accounts in Outlook Then use ReliefJet Essentials for Outlook programme to copy the e-mails from one account to the other

Adding the missing administrator groups such as ‘Hotel Manager’ to a Motopress plugin installation

When installing Motopress Hotel Manager, sometimes the user groups associated with the plugin e.g. ‘Hotel Manager’ are not present. If the permissions are not there, you can search the database of a site that is working for ‘jtg_user_roles’ where ‘jtg’ is the table prefix. Then browse the ro…

Backing up and restoring a WordPress site hosted with Flywheel

Most backup plugins will not backup the entire folder structure of a Flywheel site – they are unable to access the ‘wp-content’ folder. One method is to use the https://duplicator.com plugin as this does seem to capture everything. Once the site has been restored, you may need to edit the .htac…

Block an IP address from sending mail to a cPanel e-mail account

https://www.inmotionhosting.com/support/email/how-to-filter-emails-for-an-ip-range