<?php

add_action( 'wp', 'wcct_theme_helper_betheme', 99 );
if ( ! function_exists( 'wcct_theme_helper_betheme' ) ) {

	function wcct_theme_helper_betheme() {
		$wcct_core = WCCT_Core()->appearance;
		// removing duplicate price
		//    remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10);

		// removing wcct action hooks on theme
		remove_action( 'woocommerce_single_product_summary', array( $wcct_core, 'wcct_position_below_review' ), 11 );
		remove_action( 'woocommerce_single_product_summary', array( $wcct_core, 'wcct_position_below_price' ), 17 );

		add_action( 'woocommerce_single_product_summary', function () {
			echo '<div class="wcct_clear"></div>';
		}, 16 );
		add_action( 'woocommerce_single_product_summary', array( $wcct_core, 'wcct_position_below_review' ), 16 );
		add_action( 'woocommerce_single_product_summary', array( $wcct_core, 'wcct_position_below_price' ), 16 );
	}
}
