Skip to content

Commit

Permalink
Jetpack: Add new default modules (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
timiwahalahti authored Oct 9, 2023
1 parent 767d854 commit 456cd0c
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions public_html/wp-content/mu-plugins/jetpack-tweaks/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,27 @@ function disable_modules( $modules ) {
* Determine which Jetpack modules should be automatically activated when new sites are created
*/
function default_jetpack_modules( $modules ) {
$modules = array_diff( $modules, array( 'widget-visibility' ) );
array_push( $modules, 'contact-form', 'shortcodes', 'custom-css', 'subscriptions' );
// Disable some default modules.
$modules = array_diff(
$modules,
array(
'widget-visibility', // better performance without.
'sitemaps', // Core generates basic sitemaps.
)
);

// Add new default modules.
array_push(
$modules,
'contact-form',
'copy-post',
'custom-css',
'image-cdn',
'sharedaddy',
'shortcodes',
'subscriptions'
);

$modules = array_unique( $modules );

return $modules;
Expand Down

0 comments on commit 456cd0c

Please sign in to comment.