Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ReHUB Theme Compatibility
if( function_exists( 'rehub_option' ) ) {
$is_look_hook_defined = true;
if( $vendor_sold_by_position == 'bellow_title' ) {
remove_action( 'woocommerce_single_product_summary',array( &$this, 'wcfmmp_sold_by_single_product' ), 6 );
add_action( 'rh_woo_single_product_title',array( &$this, 'wcfmmp_sold_by_single_product' ), 6 );
}elseif( $vendor_sold_by_position == 'bellow_price' ) {
remove_action( 'woocommerce_single_product_summary', array( &$this, 'wcfmmp_sold_by_single_product' ), 15 );
add_action( 'rh_woo_single_product_price', array( &$this, 'wcfmmp_sold_by_single_product' ), 15 );
}elseif( $vendor_sold_by_position == 'bellow_sc' ) {
remove_action( 'woocommerce_single_product_summary', array( &$this, 'wcfmmp_sold_by_single_product' ), 25 );
add_action( 'rh_woo_single_product_description',array( &$this, 'wcfmmp_sold_by_single_product' ), 25 );
}else{
remove_action( 'woocommerce_product_meta_start', array( &$this, 'wcfmmp_sold_by_single_product' ), 50 );
add_action( 'rh_woo_single_product_vendor', array( &$this, 'wcfmmp_sold_by_single_product' ), 50 );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.