How do I stop plugins and themes from getting automatically updated in a new plugin?

i found this 2 filters to add in my function.php :

add_filter( ‘auto_update_plugin’, ‘__return_false’ );

add_filter( ‘auto_update_theme’, ‘__return_false’ );

but i need to do this to multiple wp sites. so i thought to build a plugin that i install where i need instead go every time to change function.php . but is possible add these 2 line with the plugin?

Read more here:: How do I stop plugins and themes from getting automatically updated in a new plugin?

Leave a Reply

Your email address will not be published. Required fields are marked *