Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created December 10, 2020 17:55
Show Gist options
  • Select an option

  • Save yousufansa/3886c1dc0c492745953629c3a392eb14 to your computer and use it in GitHub Desktop.

Select an option

Save yousufansa/3886c1dc0c492745953629c3a392eb14 to your computer and use it in GitHub Desktop.
Electro - WC Marketplace - Display Vendor Info On Deals Products
if ( ! function_exists( 'ec_child_display_sold_by_product_product_deal_product' ) ) {
function ec_child_display_sold_by_product_product_deal_product() {
if( class_exists( 'WCFMmp' ) ) {
global $WCFMmp;
add_action('electro_onsale_product_content', array( $WCFMmp->frontend, 'wcfmmp_sold_by_product' ), 45 );
add_action('electro_onsale_product_carousel_content', array( $WCFMmp->frontend, 'wcfmmp_sold_by_product' ), 35 );
add_action('electro_onsale_product_carousel_content_v2', array( $WCFMmp->frontend, 'wcfmmp_sold_by_product' ), 55 );
add_action('electro_onsale_product_carousel_content_v3', array( $WCFMmp->frontend, 'wcfmmp_sold_by_product' ), 125 );
}
}
}
add_action( 'init', 'ec_child_display_sold_by_product_product_deal_product' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment