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 4 reply threads
  • Author
    Posts
    • #24413
      JuanB
      Participant

      Hello,
      I have added this code in the child theme functions.php but it does not hide the information.

      add_filter(‘wcmp_vendor_store_header_hide_store_address’, ‘__return_false’ );
      add_filter(‘wcmp_vendor_store_header_hide_store_phone’, ‘__return_false’ );
      add_filter(‘wcmp_vendor_store_header_hide_store_email’, ‘__return_false’ );

      I have installed WCMp, WCFM Ultimate, WCFM Memberships, WCFM G & S and WCFM Analytics.

      Thanks

    • #24439
      WCFM Forum
      Keymaster

      Hi,

      This is something impossible.

      Can you try once by adding this in main theme’s functions.php ?

      Just to mention, be careful with the single quotes (‘) – ’ this is wrong quote, code will not work with this.

      Thank You

    • #24440
      WCFM Forum
      Keymaster

      Hi,

      I am adding refreshed code here again –

      add_filter('wcmp_vendor_store_header_hide_store_address', '__return_false' );
      add_filter('wcmp_vendor_store_header_hide_store_phone', '__return_false' );
      add_filter('wcmp_vendor_store_header_hide_store_email', '__return_false' );

      Thank You

    • #24506
      JuanB
      Participant
      This reply has been marked as private.
    • #24557
      WCFM Forum
      Keymaster

      Hi,

      I have revised the code. Can you please replace the code with this –

      add_filter('wcmp_vendor_store_header_hide_store_address', function( $allow, $vendor_id ) {
      	return 'Enable';	
      });
      add_filter('wcmp_vendor_store_header_hide_store_phone', function( $allow, $vendor_id ) {
      	return 'Enable';	
      });
      add_filter('wcmp_vendor_store_header_hide_store_email', function( $allow, $vendor_id ) {
      	return 'Enable';	
      });

      Hope this will solve the issue for you.

      Thank You

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