wpseo_force_skip_image_content_parsing хук-фильтрYoast 21.1

Filter wpseo_force_skip_image_content_parsing Filters if we should force skip scanning the content to parse images. This filter can be used if the regex gives a faster result than scanning the code.

The default value is false.

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

add_filter( 'wpseo_force_skip_image_content_parsing', 'wp_kama_wpseo_force_skip_image_content_parsing_filter' );

/**
 * Function for `wpseo_force_skip_image_content_parsing` filter-hook.
 * 
 * @param  $should_not_parse_content 
 *
 * @return 
 */
function wp_kama_wpseo_force_skip_image_content_parsing_filter( $should_not_parse_content ){

	// filter...
	return $should_not_parse_content;
}
$should_not_parse_content
-

Список изменений

С версии 21.1 Введена.

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

Image_Content_Extractor::gather_images()
wpseo_force_skip_image_content_parsing
yoast/src/images/Application/image-content-extractor.php 38
$should_not_parse_content = \apply_filters( 'wpseo_force_skip_image_content_parsing', $should_not_parse_content );

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

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