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

Filter wpseo_force_creating_and_using_attachment_indexables Filters if we should use attachment indexables to find all content images. Instead of scanning the content.

The default value is false.

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

add_filter( 'wpseo_force_creating_and_using_attachment_indexables', 'wp_kama_wpseo_force_creating_and_using_attachment_indexables_filter' );

/**
 * Function for `wpseo_force_creating_and_using_attachment_indexables` filter-hook.
 * 
 * @param  $false 
 *
 * @return 
 */
function wp_kama_wpseo_force_creating_and_using_attachment_indexables_filter( $false ){

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

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

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

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

Image_Content_Extractor::gather_images()
wpseo_force_creating_and_using_attachment_indexables
Indexable_Link_Builder::create_internal_link()
wpseo_force_creating_and_using_attachment_indexables
Image_Helper::get_attachment_by_url()
wpseo_force_creating_and_using_attachment_indexables
yoast/src/images/Application/image-content-extractor.php 29
$should_not_parse_content = \apply_filters( 'wpseo_force_creating_and_using_attachment_indexables', false );
yoast/src/builders/indexable-link-builder.php 332
if ( ! $this->options_helper->get( 'disable-attachment' ) || \apply_filters( 'wpseo_force_creating_and_using_attachment_indexables', false ) ) {
yoast/src/helpers/image-helper.php 313
if ( ! $this->options_helper->get( 'disable-attachment' ) || \apply_filters( 'wpseo_force_creating_and_using_attachment_indexables', false ) ) {

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

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