Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Auto activate Jetpack modules.
<?php
/**
* Auto activate Jetpack modules.
*/
function activate_jetpack_modules( $modules ){
$modules = array(
'widget-visibility',
'custom-css',
);
return $modules;
}
add_filter( 'option_jetpack_active_modules', 'activate_jetpack_modules' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment