jetpack_ai_enabled
jetpack_ai_enabled
Appears in: jetpack.11.8, jetpack.11.8.4, jetpack.11.9, jetpack.11.9.1, jetpack.12.0, jetpack.12.1, jetpack.12.1.1, jetpack.12.2.1, jetpack.12.3, jetpack.12.5, jetpack.12.6, jetpack.12.6.1, jetpack.12.7.1, jetpack.12.8, jetpack.12.8.1, jetpack.12.9, jetpack.12.9.3, jetpack.13.0, jetpack.13.1.1, jetpack.13.1.3, jetpack.13.2, jetpack.13.2.1, jetpack.13.3.1, jetpack.13.5, jetpack.13.6, jetpack.13.7, jetpack.13.8, jetpack.13.8.1, jetpack.13.9.1, jetpack.14.0, jetpack.14.1
Hook Type: filter
Displaying hooks found in version: jetpack.14.1apply_filters('jetpack_ai_enabled') is found 18 times:
- /_inc/lib/class-jetpack-ai-helper.php line 108
* @since 11.8 * * @param bool $default Are AI features enabled? Defaults to false. */ return apply_filters( 'jetpack_ai_enabled', $default ); } /** * Return true if the AI chat feature should be active on the current site. * * @todo IS_WPCOM (the endpoints need to be updated too).
- /class.jetpack-gutenberg.php line 704
wp_enqueue_style( 'recoleta-font', '//s1.wp.com/i/fonts/recoleta/css/400.min.css', array(), Constants::get_constant( 'JETPACK__VERSION' ) ); } // AI Assistant $ai_assistant_state = array( 'is-enabled' => apply_filters( 'jetpack_ai_enabled', true ), ); $screen_base = null; if ( function_exists( 'get_current_screen' ) ) { $screen_base = get_current_screen()->base; }
- /extensions/blocks/ai-assistant/ai-assistant.php line 26
function register_block() { if ( ( ( new Host() )->is_wpcom_simple() || ! ( new Status() )->is_offline_mode() ) && apply_filters( 'jetpack_ai_enabled', true ) ) { Blocks::jetpack_register_block( __DIR__, array( 'render_callback' => __NAMESPACE__ . '\load_assets' ) ); }
- /extensions/blocks/ai-assistant/ai-assistant.php line 63
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-assistant-support' ); } } ); /**
- /extensions/blocks/ai-assistant/ai-assistant.php line 75
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-assistant-form-support' ); } } ); /**
- /extensions/blocks/ai-assistant/ai-assistant.php line 87
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-content-lens' ); } } ); /**
- /extensions/blocks/ai-assistant/ai-assistant.php line 99
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-assistant-backend-prompts' ); } } ); /**
- /extensions/blocks/ai-assistant/ai-assistant.php line 111
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-assistant-usage-panel' ); } } ); /**
- /extensions/blocks/ai-assistant/ai-assistant.php line 123
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-featured-image-generator' ); } } ); /**
- /extensions/blocks/ai-assistant/ai-assistant.php line 135
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-title-optimization' ); } } ); /**
- /extensions/blocks/ai-assistant/ai-assistant.php line 147
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-assistant-experimental-image-generation-support' ); } } ); /**
- /extensions/blocks/ai-assistant/ai-assistant.php line 159
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-general-purpose-image-generator' ); } } ); /**
- /extensions/blocks/ai-assistant/ai-assistant.php line 171
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) && apply_filters( 'breve_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-proofread-breve' ); } } ); /**
- /extensions/blocks/ai-assistant/ai-assistant.php line 183
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-assistant-site-logo-support' ); } } ); /**
- /extensions/blocks/ai-assistant/ai-assistant.php line 195
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-title-optimization-keywords-support' ); } } ); /**
- /extensions/blocks/ai-assistant/ai-assistant.php line 207
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) && apply_filters( 'list_to_table_transform_enabled', false ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-list-to-table-transform' ); } } );
- /extensions/blocks/voice-to-content/voice-to-content.php line 26
* Register the block only if we are on an A8C P2 site. * TODO: when opening it to Jetpack sites, do the same checks * we do on the AI Assistant block: the jetpack_ai_enabled filter * and the Jetpack connection: * - apply_filters( 'jetpack_ai_enabled', true ) * - ( new Host() )->is_wpcom_simple() || ! ( new Status() )->is_offline_mode() */ if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { if ( function_exists( 'wpcom_is_automattic_p2_site' ) && wpcom_is_automattic_p2_site() ) { Blocks::jetpack_register_block( __DIR__,
- /extensions/plugins/ai-assistant-plugin/ai-assistant-plugin.php line 31
( new Host() )->is_wpcom_simple() || ( ( new Connection_Manager( 'jetpack' ) )->has_connected_owner() && ! ( new Status() )->is_offline_mode() ) && apply_filters( 'jetpack_ai_enabled', true ) ) { // Register AI assistant plugin. \Jetpack_Gutenberg::set_extension_available( FEATURE_NAME ); } } add_action( 'jetpack_register_gutenberg_extensions', __NAMESPACE__ . '\register_plugin' );