Skip to content

Instantly share code, notes, and snippets.

@wpsoul
Created December 29, 2019 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpsoul/a1bf5fb60b10f78e459f63c3866db919 to your computer and use it in GitHub Desktop.
Save wpsoul/a1bf5fb60b10f78e459f63c3866db919 to your computer and use it in GitHub Desktop.
// 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