Skip to content

Commit

Permalink
tidy up on the extensions file
Browse files Browse the repository at this point in the history
  • Loading branch information
CGastrell committed Mar 7, 2025
1 parent c086cd0 commit 61f0684
Showing 1 changed file with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ function () {
if ( apply_filters( 'breve_enabled', true ) ) {
Jetpack_Gutenberg::set_extension_available( 'ai-proofread-breve' );
}

if ( apply_filters( 'ai_seo_enhancer_enabled', false ) ) {
Jetpack_Gutenberg::set_extension_available( 'ai-seo-enhancer' );
}
}
}
);
Expand Down Expand Up @@ -189,17 +193,3 @@ function () {
}
}
);

/**
* Register the `ai-seo-enhancer` extension.
*/
add_action(
'jetpack_register_gutenberg_extensions',
function () {
if ( apply_filters( 'jetpack_ai_enabled', true ) &&
apply_filters( 'ai_seo_enhancer_enabled', false )
) {
\Jetpack_Gutenberg::set_extension_available( 'ai-seo-enhancer' );
}
}
);

0 comments on commit 61f0684

Please sign in to comment.