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

Filter: wpseo_opengraph_image_type Allow changing the Open Graph image type.

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

add_filter( 'wpseo_opengraph_image_type', 'wp_kama_wpseo_opengraph_image_type_filter', 10, 2 );

/**
 * Function for `wpseo_opengraph_image_type` filter-hook.
 * 
 * @param string                 $image_type   The type of the Open Graph image.
 * @param Indexable_Presentation $presentation The presentation of an indexable.
 *
 * @return string
 */
function wp_kama_wpseo_opengraph_image_type_filter( $image_type, $presentation ){

	// filter...
	return $image_type;
}
$image_type(строка)
The type of the Open Graph image.
$presentation(Indexable_Presentation)
The presentation of an indexable.

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

Image_Presenter::filter()
wpseo_opengraph_image_type
yoast/src/presenters/open-graph/image-presenter.php 114
$image_type = \apply_filters( 'wpseo_opengraph_image_type', $image_type, $this->presentation );

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

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