MainWP Blog

Core Marketing Message
WordPress Business
Todd Jones

Building a core marketing message before executing tactics

We need to build a core marketing message. In 2004, Brian Halligan sat next to a fellow student, Dharmesh Shah, at the Massachusetts Institute of Technology (MIT). According to Halligan, that’s where the magic began. The two were passionate about technology and could see a change in how customers were buying. In 2005, they entered their idea into a business plan competition and were named semi-finalists. They took their model, “inbound marketing,” and created their company, HubSpot, and launched in 2006. The rest, as is often said, is history. For nearly 20 years, we have been using the inbound marketing

Code Snippets - WordPress 6.2
Tips & Tricks
Sebastian Moran

Useful Code Snippets for WordPress 6.2

WordPress 6.2, the next major release of WordPress core, is scheduled for March 28th. The new version of WordPress comes with many feature improvements and enhancements, but you may not want to use them. Here are some code snippets to disable certain features: 1) To disable the new Openverse category from showing in the new media tab in the block editor, you can use this code snippet. add_filter( ‘block_editor_settings_all’, function( $settings ) { $settings[‘enableOpenverseMediaCategory’] = false;return $settings; }, 10 ); Let’s discuss 2) There is a new filter wp_save_post_revision_revisions_before_deletion which can be used to delete all but the oldest post

Useful Code Snippets WordPress 6.1
Tips & Tricks
Sebastian Moran

Useful Code Snippets for WordPress 6.1

WordPress 6.1 is scheduled to be released on the 1st of November and contains many feature improvements. Database queries made using WP_Query will now be cached by default in WordPress 6.1. To disable caching globally on query improvements (extreme case), use this code snippet; function disable_caching( $wp_query ) {    $wp_query->query_vars[‘cache_results’] = false; } add_action( ‘parse_query’, ‘disable_caching’ ); Also, in the WordPress 6.1 release, new cache checks are being added to the site health, and a new filter was added so that you can suggest persistent object caching and change the link in the check for caching in site health. In

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

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

Tips & Tricks
Sebastian Moran

Useful Code Snippets for WordPress 5.6

The newest version of WordPress version 5.6 was released on the 8th of December. Some of the new features and changes added in the 5.6 release relate to block patterns in the block editor, a new default theme, application password, better video captioning, and PHP 8.0 support. To disable the application passwords feature in WordPress you can use this code snippet; add_filter( ‘wp_is_application_passwords_available’, ‘__return_false’ ); The reason you might need to disable the application password feature in WordPress is that can be a security risk. You can disable the application passwords feature for specific users as well using this code

Screenshot: MainWP.com
Tips & Tricks
Sebastian Moran

How to Keep Your Child Site Secure

If you build and maintain sites for customers, site security is a top priority. WordPress moved to a two-week schedule for minor releases after WordPress 5.0 was released. Each WordPress minor release will include security fixes. These same security changes are backported to older versions of WordPress (e.g., in the case of the 4.9.X branch, the security release would be 4.9.10). You need to set a minimum version of WordPress that you will support on client sites, no later than two versions. It is easier to keep the child sites updated to the most current version, rather than running a

Using the Better Speed Plugin to Reduce WordPress Core Request Files
Tips & Tricks
Sebastian Moran

Using the Better Speed Plugin to Reduce WordPress Core Request Files

WordPress (by default) will load a number of assets on the front-end of your Child Site, which will slow it down by adding a number of requests for features you may not be using. Some of the requests that WordPress core adds on load include emojis, embeds, dashicons, jQuery migrate, XML-RPC, pingbacks, generator tag, short link, Windows live writer manifest tag, and the RSD generator. There is an easy-to-use plugin called Better Speed, which will allow you to disable those assets from loading on the front-end of your site. After you have installed and activated the plugin it will add

Which WordPress Core Files are Safe to Delete
Tips & Tricks
Sebastian Moran

Which WordPress Core Files are Safe to Delete

When installed, WordPress will add a number of files which can be safely deleted on any of your child sites. The first of those files is readme.html, which is an information HTML file as part of the famous 5-minute install of WordPress manually. The second of those files is wp-config-sample.php, which is an example of the wp-config.php file, which contains all the site’s database credentials and its salts, along with any constants being used. Remember not to delete the wp-config.php file in the html folder of your site server. This will cause the site not to load, as the database

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys

Your Download Is Just One Click Away

…or just download the plugin.

By entering your email, you agree to our Terms of Service and Privacy Policy.