Skip to content

Instantly share code, notes, and snippets.

@wpsoul
Created May 29, 2018 15:04
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/6a9428e4eb555d3a28d8863b1caf84c8 to your computer and use it in GitHub Desktop.
Save wpsoul/6a9428e4eb555d3a28d8863b1caf84c8 to your computer and use it in GitHub Desktop.
function mycode_show_merchant_name_in_loop() {
global $product;
if ( !dfrpswc_is_dfrpswc_product( $product->get_id() ) ) {
return;
}
$dfr_product = dfrps_product( $product->get_id() );
printf( ' %s ', esc_html( $dfr_product['merchant'] ) );
}
add_action( 'rehub_vendor_show_action', 'mycode_show_merchant_name_in_loop', 5 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment