Advertisements

maybe_disable_automattic_widgets

Definition:
function maybe_disable_automattic_widgets() {}

Source code

function maybe_disable_automattic_widgets() {

	$plugins = __get_option( 'active_plugins' );



	foreach ( (array) $plugins as $plugin ) {

		if ( basename( $plugin ) == 'widgets.php' ) {

			array_splice( $plugins, array_search( $plugin, $plugins ), 1 );

			update_option( 'active_plugins', $plugins );

			break;

		}

	}

}

2331

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: