Automattic\WooCommerce\Internal\ProductDownloads

DownloadableFileAttachments::handle_adjacent_image_link │ public │ WC 1.0

Leave out previous and next image links that point to downloadable product files.

Attachment pages for unattached images link to other unattached images, and the link can show the image itself.

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

Хуков нет.

Возвращает

string|mixed.

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

$DownloadableFileAttachments = new DownloadableFileAttachments();
$DownloadableFileAttachments->handle_adjacent_image_link( $output, $attachment_id );
$output(строка|разное) (обязательный)
Link HTML.
$attachment_id(int|разное) (обязательный)
ID of the linked attachment.

Код DownloadableFileAttachments::handle_adjacent_image_link() WC 11.3.0

public function handle_adjacent_image_link( $output, $attachment_id ) {
	return $this->is_hidden_attachment( absint( $attachment_id ) ) ? '' : $output;
}