ai_seo_enhancer_enabled
ai_seo_enhancer_enabled
Appears in: jetpack.14.5, jetpack.14.6, jetpack.14.7, jetpack.14.8, jetpack.14.9.1, jetpack.15.0, jetpack.15.1, jetpack.15.1.1, jetpack.15.2, jetpack.15.3.1, jetpack.15.4, jetpack.15.5, jetpack.15.6, jetpack.15.7, jetpack.15.8, jetpack.15.9, jetpack.15.9.1, jetpack.16.0
Hook Type: filter
Displaying hooks found in version: jetpack.16.0apply_filters('ai_seo_enhancer_enabled') is found 4 times:
- /_inc/lib/class.core-rest-api-endpoints.php line 2966
// SEO Tools - SEO Enhancer. // TODO: move this to the main options array? The filter was there while developing the feature. // It might come in handy to hold its availability behind the filter since it still depends on AI to be available. if ( apply_filters( 'ai_seo_enhancer_enabled', true ) ) { $options['ai_seo_enhancer_enabled'] = array( 'description' => esc_html__( 'Automatically generate SEO title, SEO description, and image alt text for new posts.', 'jetpack' ), 'type' => 'boolean', 'default' => 0, 'validate_callback' => __CLASS__ . '::validate_boolean', 'jp_group' => 'seo-tools', - /extensions/blocks/ai-assistant/ai-assistant.php line 92
if ( apply_filters( 'ai_correct_spelling_enabled', false ) ) { Jetpack_Gutenberg::set_extension_available( 'ai-correct-spelling' ); } if ( apply_filters( 'ai_seo_enhancer_enabled', true ) ) { Jetpack_Gutenberg::set_availability_for_plan( 'ai-seo-enhancer' ); } } } ); - /extensions/plugins/ai-assistant-plugin/ai-sidebar/class-jetpack-ai-sidebar.php line 335
* @return bool */ private static function is_seo_suggestions_enabled(): bool { return jetpack_is_internal_testing_environment() && (bool) apply_filters( 'ai_seo_enhancer_enabled', true ) && self::has_seo_feature() && self::is_seo_tools_usable(); } /** * Whether the site's plan includes the Jetpack SEO feature. - /jetpack_vendor/automattic/jetpack-seo/src/class-initializer.php line 896
* * @return array */ public static function get_ai_data() { $filter_on = (bool) apply_filters( 'ai_seo_enhancer_enabled', true ); // Current_Plan is provided by the host Jetpack plugin, not a package // dependency — guard like the Jetpack_SEO_* helpers above. $plan_supports = class_exists( 'Automattic\\Jetpack\\Current_Plan' ) // @phan-suppress-next-line PhanUndeclaredClassMethod -- guarded by class_exists; host plugin provides the class. && \Automattic\Jetpack\Current_Plan::supports( 'ai-seo-enhancer' );