Skip to content

Commit

Permalink
add feature to gutenberg extensions if ai is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
CGastrell committed Sep 24, 2024
1 parent 64ecc1d commit d3e0e33
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,15 @@ function () {
}
}
);

/**
* Register the `ai-logo-style-selector-support` extension.
*/
add_action(
'jetpack_register_gutenberg_extensions',
function () {
if ( apply_filters( 'jetpack_ai_enabled', true ) && apply_filters( 'jetpack_ai_logo_style_selector_enabled', false ) ) {
\Jetpack_Gutenberg::set_extension_available( 'ai-logo-style-selector-support' );
}
}
);

0 comments on commit d3e0e33

Please sign in to comment.