Created
March 8, 2023 22:03
-
-
Save BruceMcKinnon/d63a0929cf853dd32f4f911749eb0bc0 to your computer and use it in GitHub Desktop.
Force WP auto-updating UI for plugins and themes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add these settings to force WP to display the 'Enable auto-update' options for plugins and themes. | |
// Thanks to https://wordpress.org/support/topic/automatic-updates-not-visible-in-plugins-screen-options-or-dashboard/ | |
// | |
// Enable plugins auto-update UI elements. | |
add_filter( 'plugins_auto_update_enabled', '__return_true' ); | |
// | |
// Enable themes auto-update UI elements. | |
add_filter( 'themes_auto_update_enabled', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment