Automattic\WooCommerce\Blocks\BlockTypes

ProductGallery::get_dialog_video_html │ private │ WC 1.0

Get video HTML for the product gallery dialog.

Method of the class: ProductGallery{}

No Hooks.

Returns

string.

Usage

// private - for code of main (parent) class only
$result = $this->get_dialog_video_html( $media );
$media(array) (required)
Video media data.

ProductGallery::get_dialog_video_html() code WC 11.3.0

private function get_dialog_video_html( $media ) {
	return ProductGalleryUtils::get_video_html(
		ProductGalleryUtils::get_video_attributes( $media, 'dialog' )
	);
}