Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.0
Something big is coming for marketplace admins… MultiVendorX 5.0 is almost here. Are you ready?
Be the first to explore all the game-changing features!
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

View Categories

Remove Vendor Name

Remove Vendor Name from New Order email : #

add_filter( 'woocommerce_display_item_meta','wcmp_hide_sold_by_from_emails',10,3);
function wcmp_hide_sold_by_from_emails( $html, $item, $args ){
        $strings = array();
                $html    = '';
                $args    = wp_parse_args(
                        $args,
                        array(
                                'before'       => '<ul class=""wc-item-meta""><li>',
                                'after'        => '</li></ul>',
                                'separator'    => '</li><li>',
                                'echo'         => true,
                                'autop'        => false,
                                'label_before' => '<strong class=""wc-item-meta-label"">',
                                'label_after'  => ':</strong> ',
                        )
                );

                foreach ( $item->get_formatted_meta_data() as $meta_id => $meta ) {
                        $value = $args['autop'] ? wp_kses_post( $meta->display_value ) : wp_kses_post( make_clickable( trim( $meta->display_value ) ) );
                        if( $meta->display_key != 'Sold By' )
                                $strings[] = $args['label_before'] . wp_kses_post( $meta->display_key ) . $args['label_after'] . $value;
                }
                if ( $strings ) {
                        $html = $args['before'] . implode( $args['separator'], $strings ) . $args['after'];
                }

    return $html;
}

Leave a Reply

Shopping Cart
Scroll to Top