Skip to content

Commit

Permalink
AI Title Optimization: Register as beta extension (#37001)
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoagds authored Apr 22, 2024
1 parent cb075b7 commit 20a2ce1
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

Add title optimization as beta
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,15 @@ function () {
}
}
);

/**
* Register the `ai-title-optimization` extension.
*/
add_action(
'jetpack_register_gutenberg_extensions',
function () {
if ( apply_filters( 'jetpack_ai_enabled', true ) ) {
\Jetpack_Gutenberg::set_extension_available( 'ai-title-optimization' );
}
}
);
3 changes: 2 additions & 1 deletion projects/plugins/jetpack/extensions/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"v6-video-frame-poster",
"videopress/video-chapters",
"ai-assistant-backend-prompts",
"ai-logo-generator"
"ai-logo-generator",
"ai-title-optimization"
],
"experimental": [ "ai-image", "ai-paragraph" ],
"no-post-editor": [
Expand Down

0 comments on commit 20a2ce1

Please sign in to comment.