Hide vendor store info

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 1 reply thread
  • Author
    Posts
    • #25076
      JuanB
      Participant

      Hello,
      I have added the code you gave me in functions.php in order to hide the seller’s email on the page of your store (WC Marketplace plugin).

      add_filter(‘wcmp_vendor_store_header_hide_store_email’, function( $allow, $vendor_id ) {
      return ‘Enable’;
      });

      The code works fine, but generates error. I attach screen impressions.
      Thank you.

    • #25103
      WCFM Forum
      Member

      Hi,

      Understand, your PHP version does not support the code in this format.

      replace code with this –

      function wcmp_vendor_store_header_force_hide_store_email( $allow, $vendor_id ) {
      	return 'Enable';
      }
      add_filter( 'wcmp_vendor_store_header_hide_store_email', 'wcmp_vendor_store_header_force_hide_store_email', 10, 2 );

      Thank You

Viewing 1 reply thread
  • The topic ‘Hide vendor store info’ is closed to new replies.