Uses
Uses | Description |
---|---|
wp-includes/option.php: update_option() | Updates the value of an option that was already added. |
Disables the Automattic widgets plugin, which was merged into core.
File: wp-admin/includes/upgrade.php
function maybe_disable_automattic_widgets() { $plugins = __get_option( 'active_plugins' ); foreach ( (array) $plugins as $plugin ) { if ( 'widgets.php' === basename( $plugin ) ) { array_splice( $plugins, array_search( $plugin, $plugins, true ), 1 ); update_option( 'active_plugins', $plugins ); break; } } }
Version | Description |
---|---|
2.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/maybe_disable_automattic_widgets