MainWP & Jetpack by Automattic partnered 🤝 to help you secure sites with two new Extensions

MainWP Blog

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

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.