Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to enable automatic updates for plugins in WordPress.
Wordpress
add_filter('auto_update_plugin', '__[1]');
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using return_false disables updates.
Using disable_updates or enable_updates are not valid WordPress functions.
✗ Incorrect
Using return_true tells WordPress to enable automatic updates for plugins.
2fill in blank
mediumComplete the code to disable automatic core updates in WordPress.
Wordpress
add_filter('auto_update_core', '__[1]');
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using return_true enables updates instead of disabling.
Using disable_core_updates or enable_core_updates are not valid WordPress functions.
✗ Incorrect
Using return_false disables automatic core updates in WordPress.
3fill in blank
hardFix the error in the code to enable automatic theme updates.
Wordpress
add_filter('auto_update_theme', '__[1]');
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using return_false disables updates.
Using enable_theme_updates or disable_theme_updates are not valid WordPress functions.
✗ Incorrect
The correct function to enable automatic theme updates is return_true.
4fill in blank
hardFill both blanks to enable automatic updates for plugins and themes.
Wordpress
add_filter('auto_update_plugin', '__[1]'); add_filter('auto_update_theme', '__[2]');
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using return_false disables updates.
Using enable_updates or disable_updates are not valid WordPress functions.
✗ Incorrect
Using return_true for both filters enables automatic updates for plugins and themes.
5fill in blank
hardFill all three blanks to disable automatic updates for core, plugins, and themes.
Wordpress
add_filter('auto_update_core', '__[1]'); add_filter('auto_update_plugin', '__[2]'); add_filter('auto_update_theme', '__[3]');
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using return_true enables updates.
Using disable_updates or enable_updates are not valid WordPress functions.
✗ Incorrect
Using return_false disables automatic updates for core, plugins, and themes.