Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMohan Babu Vejendla
1,315 PointsHow to disable wp- plug in updating feature ?
How to disable wp- plug in updating feature ?
3 Answers
James Gill
Courses Plus Student 34,936 PointsIf I under you correctly, then the answer's easy--by default, WordPress does not automatically update plugins or themes. In other words, all plugin and theme updates have to be done manually.
If you want to automate them, however, you just add a filter, like this:
// Enable automatic updates for plugins
add_filter('auto_update_plugin', '__return_true');
// Enable automatic updates for themes
add_filter('auto_update_theme', '__return_true');
James Gill
Courses Plus Student 34,936 PointsMohan, are you trying to disable all plugin updates, or just a specific plugin?
Mohan Babu Vejendla
1,315 Pointsi need both
James Gill
Courses Plus Student 34,936 PointsMohan--again, you don't need to disable "auto update" of plugins and themes, because they are never auto-updated. So, you'd use the above code only if you want to auto-update.
Hope that helps. -james
Mohan Babu Vejendla
1,315 PointsMohan Babu Vejendla
1,315 Pointsyeah, thank you for replay .when i want to disable then can i to write instead of _true at _false ??