????JFIF??x?x????'
Server IP : 104.21.64.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/jetpack/extensions/plugins/ai-content-lens/ |
Upload File : |
<?php /** * Block Editor - AI Assistant plugin feature. * * @package automattic/jetpack */ namespace Automattic\Jetpack\Extensions\Content_Lens; use Automattic\Jetpack\Connection\Manager as Connection_Manager; use Automattic\Jetpack\Status; use Automattic\Jetpack\Status\Host; // Feature name. const FEATURE_NAME = 'ai-content-lens'; /** * Register the AI Content Lens plugin. * The feature is only available on sites * with a working connection to WordPress.com. * * @return void */ function register_plugin() { // Connection check. if ( ( new Host() )->is_wpcom_simple() || ( ( new Connection_Manager( 'jetpack' ) )->has_connected_owner() && ! ( new Status() )->is_offline_mode() ) ) { // Register AI Content lens plugin. \Jetpack_Gutenberg::set_extension_available( FEATURE_NAME ); } } add_action( 'jetpack_register_gutenberg_extensions', __NAMESPACE__ . '\register_plugin' ); // Populate the available extensions with ai-content-lens. add_filter( 'jetpack_set_available_extensions', function ( $extensions ) { return array_merge( $extensions, array( FEATURE_NAME, ) ); } );