Want to change the look or behavior of a plugin or theme without breaking your site? Custom snippets can help – and we’ve got you covered!
Below are some easy, copy-paste code tweaks you can use in your functions.php file or with a plugin like Code Snippets:
Remove “License activation” nags
Hide Featured Image from Posts Automatically
Disable auto-update email notifications
Got a request? Ask below and we (or others) can post a snippet tailored to your plugin/theme.
Tip: Always back up your site before adding new code, or test it using a staging plugin.
Share your own tweaks too — the best community-shared tips will be pinned and credited!
Below are some easy, copy-paste code tweaks you can use in your functions.php file or with a plugin like Code Snippets:
PHP:
add_filter('site_transient_update_plugins', '__return_null');
PHP:
add_filter( 'the_content', function( $content ) {
if ( is_single() && has_post_thumbnail() ) {
$content = preg_replace('/<img[^>]+wp-image-[0-9]+[^>]*>/', '', $content, 1);
}
return $content;
});
PHP:
add_filter( 'auto_plugin_update_send_email', '__return_false' );
add_filter( 'auto_theme_update_send_email', '__return_false' );
Got a request? Ask below and we (or others) can post a snippet tailored to your plugin/theme.
Share your own tweaks too — the best community-shared tips will be pinned and credited!