wpseo_force_skip_image_content_parsing
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 | Введена. |
Где вызывается хук
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 );