HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/breadsecret.com/wp-content/plugins/woothumbs-premium/inc/class-compat-yith-badge.php
<?php

/**
 * Yith Badge Management compatibility Class
 *
 * @since 4.6.11
 */
class Iconic_WooThumbs_Compat_Yith_Badge {
	/**
	 * Init.
	 */
	public static function run() {
		add_action( 'iconic_woothumbs_before_images', array( __CLASS__, 'show_badge_on_product' ), 10 );
	}

	/**
	 * Show badge on product.
	 */
	public static function show_badge_on_product() {
		if ( ! function_exists( 'YITH_WCBM_Frontend' ) ) {
			return;
		}

		global $product;

		$yith_wcbm_fe = YITH_WCBM_Frontend();

		echo $yith_wcbm_fe->show_badge_on_product( '', $product->get_id() );
	}
}