MainWP Blog

Tips & Tricks
Sebastian Moran

Why you need to update WooCommerce and WooCommerce Blocks Plugins Now on Your Site

WooCommerce recently found a critical security issue that was reported that affects all versions of WooCommerce from branches 3.3 to 5.5. You may have already noticed an email with the subject line Action required: Critical vulnerability in WooCommerce that went out around 7pm EST. The most current version of WooCommerce is 5.5.1 but patched versions for branches 3.3 up to version 5.5 have also been released. WordPress.org has the ability to push out automatic plugin updates for security reasons so if you were running version 5.4.1 it would have automatically updated to version 5.4.2. Depending on which branch of WooCommerce

Tips & Tricks
Sebastian Moran

How to Remove Malware from your Site

Taking over an existing site for a client which is infected with malware can be a complex mess to deal with and to get the site clean and free of malware. Luckily there are a number of security and malware scanning plugins that will help with being able to clean up the site. The iThemes Security Pro plugin includes a number of security features and includes a site scanner that will scan WordPress core and plugins for files that should not exist on the site. Anti-Malware Security and Brute-Force Firewall is a plugin that makes it very easy to scan

Tips & Tricks
Sebastian Moran

How to use the WP Mail Pro Plugin on your site

Having your site send reliable site email can be a mess to deal with. There is now a new service with a plugin called WP Mail Pro. The pricing for WP Mail Pro is very reasonable the free plan includes up to 1,000 emails a month, the lite plan includes 10,000 emails a month, the basic plan is up to 50,000 emails a month and if you need to be able to send even more emails from your site then the premium plan includes up to 100,000 emails a month. You can easily change your plan in WP Mail Pro

Tips & Tricks
Sebastian Moran

How to create a thank you page for WooCommerce

If you are using WooCommerce on your site and want to create a thank you page for when an order has been created one of the easiest plugins to use is NextMove Lite – Thank You Page for WooCommerce. After you have installed and activated the plugin it will add a new submenu item in wp-admin under; WooCommerce > Thank You Page Default thank you page will be created automatically after the plugin has been installed you can then edit the thank you page or create a new one. When editing the thank you page you can select conditions for

Tips & Tricks
Sebastian Moran

Useful Code Snippets for WordPress 5.8

WordPress 5.8 is on track to be released on the 20th of July and it contains a number of new features. You can test WordPress 5.8 using a beta version on a staging site if you want to get used to the newer version of WordPress that will be released. WordPress finally includes support for the WebP image format in version 5.8. The image quality that WordPress will use will be similar to JPG and PNG image formats which is set as 82%. In order to change the WebP image quality to 90% you can use the following code snippet.

Tips & Tricks
Sebastian Moran

How to Optimize PDF files on your Site

Image optimization services and plugins are most commonly known on which ones work well. But it is not as common to know how to optimize site assets that happen to be PDF files. When normally creating a PDF or exporting a PDF that will be uploaded on your site the file will not be optimized and depending on the images or the number of pages that the PDF file is the file could be 14-30 MB in size. PDF files like image files can be easily optimized using a service with a plugin or a site to optimize the file

Tips & Tricks
Sebastian Moran

How to use the WP Meteor Plugin on your Site

The WP Meteor plugin is a very easy way to improve your site’s load time and it will help improve the site’s load time for site visitors. After the plugin has been installed and activated on your site it will add a new admin menu to; Settings > WP Meteor The plugin works by delaying the loading and firing of scripts until after the page is rendered. The WP Meteor plugin will help improve your Google PageSpeed score and the perceived load time for site users. The plugin will improve the following that Google Lighthouse uses to return the site

Tips & Tricks
Sebastian Moran

How to Easily Remove Images without Unregistered Sizes on your Site

When changing themes on a site it could be possible that the registered image sizes no longer exist on your site. This can mean that there might be image size files that exist in your site’s media library that should not exist and those images can be deleted from the media library. The easy-to-use plugin solution would be the Image Regenerate & Select Crop plugin. After you have installed and activated the plugin you will need to go to the new admin menu item it adds; Image Regenerate & Select Crop > General Settings You can then click on the

Tips & Tricks
Sebastian Moran

How to Delete all Transients in your Sites Database

WordPress uses transients for storing cached short-term data in a sites database within the options database table. Depending on the set of plugins you are using in your plugin stack those plugins can end up bloating your options database table and those transients might not expire correctly. You can check to see how many transients are being stored in your options database table by using phpMyAdmin and then searching for the following option name from the options database table; _transient_% This will return all of the options that are transients which will give you an idea of the number of

Tips & Tricks
Sebastian Moran

Which WordPress Cron Events Should You Modify

WordPress has WP-Cron which is a built-in system used for scheduling time-based tasks. WordPress core adds a number of default cron events and those can easily be modified using a plugin such as WP Crontrol. After you have installed and activated the plugin it will add sub-menu items to; Tools > Cron Events To view, all WordPress core events go to the middle section which will show all of those. Two cron events that are worth modifying would be; delete_expired_transients The delete expired transients cron event normally runs daily to delete transients in the options database table that have expired

Looking for something?