wpseo_enable_ai_content_planner_inline_banner хук-фильтрYoast 1.0

Filter: wpseo_enable_ai_content_planner_inline_banner Allows hiding the AI Content Planner inline banner site-wide.

Returning false stops the hidden meta inputs from being rendered, which the editor JS treats as "banner disabled".

Использование

add_filter( 'wpseo_enable_ai_content_planner_inline_banner', 'wp_kama_wpseo_enable_ai_content_planner_inline_banner_filter' );

/**
 * Function for `wpseo_enable_ai_content_planner_inline_banner` filter-hook.
 * 
 * @param bool $enabled Whether the inline banner should be available in the editor.
 *
 * @return bool
 */
function wp_kama_wpseo_enable_ai_content_planner_inline_banner_filter( $enabled ){

	// filter...
	return $enabled;
}
$enabled(true|false)
Whether the inline banner should be available in the editor.
По умолчанию: true

Где вызывается хук

WPSEO_Metabox::render_hidden_fields()
wpseo_enable_ai_content_planner_inline_banner
yoast/admin/metabox/class-metabox.php 371
if ( apply_filters( 'wpseo_enable_ai_content_planner_inline_banner', true ) ) {

Где используется хук в Yoast SEO

Использование не найдено.