Skip to content

Commit

Permalink
Jetpack AI: add beta flag for style support on logo generator (#39510)
Browse files Browse the repository at this point in the history
* add beta flag for style support on logo generator

* add feature to gutenberg extensions if ai is enabled

* move the feature to beta group, not production
  • Loading branch information
CGastrell authored Sep 24, 2024
1 parent c8c3ec5 commit e126baf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: other

Jetpack AI: add beta flag to support styles dropdown on logo generator
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' );
}
}
);
3 changes: 2 additions & 1 deletion projects/plugins/jetpack/extensions/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
"recipe",
"v6-video-frame-poster",
"videopress/video-chapters",
"ai-assistant-backend-prompts"
"ai-assistant-backend-prompts",
"ai-logo-style-selector-support"
],
"experimental": [],
"no-post-editor": [
Expand Down

0 comments on commit e126baf

Please sign in to comment.