jetpack_ai_enabled, true
jetpack_ai_enabled, true
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('jetpack_ai_enabled, true') is found 12 times:
- /class.jetpack-gutenberg.php line 849
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' ) ) { $current_screen = get_current_screen(); $screen_base = $current_screen ? $current_screen->base : null; - /extensions/blocks/ai-assistant/ai-assistant.php line 30
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 67
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) ) { Jetpack_Gutenberg::set_extension_available( 'ai-assistant-support' ); Jetpack_Gutenberg::set_extension_available( 'ai-assistant-form-support' ); Jetpack_Gutenberg::set_extension_available( 'ai-content-lens' ); Jetpack_Gutenberg::set_extension_available( 'ai-assistant-backend-prompts' ); Jetpack_Gutenberg::set_extension_available( 'ai-assistant-usage-panel' ); Jetpack_Gutenberg::set_extension_available( 'ai-featured-image-generator' ); - /extensions/blocks/ai-assistant/ai-assistant.php line 105
*/ 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/ai-assistant/ai-assistant.php line 119
*/ add_action( 'jetpack_register_gutenberg_extensions', function () { if ( apply_filters( 'jetpack_ai_enabled', true ) && apply_filters( 'ai_response_feedback_enabled', true ) ) { \Jetpack_Gutenberg::set_extension_available( 'ai-response-feedback' ); } } ); - /extensions/blocks/voice-to-content/voice-to-content.php line 29
* 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' ); - /extensions/plugins/ai-assistant-plugin/ai-sidebar/class-jetpack-ai-sidebar.php line 630
Warning: Undefined array key 632 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
Warning: Undefined array key 633 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
Warning: Undefined array key 634 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
Warning: Undefined array key 635 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
} return ( new Connection_Manager( 'jetpack' ) )->has_connected_owner() && ! ( new Status() )->is_offline_mode() && apply_filters( 'jetpack_ai_enabled', true ); } }
- /extensions/plugins/ai-assistant-plugin/reader-chat/class-jetpack-reader-chat.php line 411
} return ( new Connection_Manager( 'jetpack' ) )->has_connected_owner() && ! ( new Status() )->is_offline_mode() && apply_filters( 'jetpack_ai_enabled', true ); } /** * Check whether the current site can serve Reader Chat under its Search plan. * * Uses WordPress.com's local Search plan source on Simple sites. Elsewhere,
- /extensions/plugins/block-notes/block-notes.php line 123
} return ( new Connection_Manager( 'jetpack' ) )->has_connected_owner() && ! ( new Status() )->is_offline_mode() && apply_filters( 'jetpack_ai_enabled', true ); } /** * Check if the current screen is the post editor for a 'post' post type. * * Block Notes is only for the post editor (not site editor, pages, or other contexts).
- /extensions/plugins/image-studio/image-studio.php line 107
} return ( new Connection_Manager( 'jetpack' ) )->has_connected_owner() && ! ( new Status() )->is_offline_mode() && apply_filters( 'jetpack_ai_enabled', true ); } /** * Check whether the video clip generation flow can run on the current site. * * Image Studio enablement is always required — video clip generation is only
- /jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-jetpack-ai.php line 554
* @since 5.28.3 * * @param boolean $enabled True if Jetpack AI should be enabled, false otherwise. Default true. */ $is_enabled = apply_filters( 'jetpack_ai_enabled', true ); return $is_enabled && parent::is_active(); } /** * Get data about the AI Assistant feature