jetpack_ai_enabled

jetpack_ai_enabled

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.14.0

apply_filters('jetpack_ai_enabled') is found 17 times:

  • /_inc/lib/class-jetpack-ai-helper.php line 101
    		 * @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

    Warning: Undefined array key 199 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 200 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

     */
    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/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' );