Yoast\WP\SEO\Helpers\Open_Graph

Values_Helper::get_open_graph_image()publicYoast 1.0

Filters the Open Graph image URL.

Метод класса: Values_Helper{}

Хуки из метода

Возвращает

Строку. The open graph image URL.

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

$Values_Helper = new Values_Helper();
$Values_Helper->get_open_graph_image( $image, $object_type, $object_subtype );
$image(строка) (обязательный)
The default image URL.
$object_type(строка) (обязательный)
The object type.
$object_subtype(строка) (обязательный)
The object subtype.

Код Values_Helper::get_open_graph_image() Yoast 22.4

public function get_open_graph_image( $image, $object_type, $object_subtype ) {
	/**
	 * Allow changing the Open Graph image URL.
	 *
	 * @param string $image          The default image URL.
	 * @param string $object_subtype The object subtype.
	 */
	return \apply_filters( 'Yoast\WP\SEO\open_graph_image_' . $object_type, $image, $object_subtype );
}