Created
December 29, 2019 18:40
-
-
Save wpsoul/a1bf5fb60b10f78e459f63c3866db919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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