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