Yoast\WP\SEO\Helpers\Open_Graph

Values_Helper::get_open_graph_image_id()publicYoast 1.0

Filters the Open Graph image ID.

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

Возвращает

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

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

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

Код Values_Helper::get_open_graph_image_id() Yoast 22.3

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