Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Hide vendor store info
- This topic has 4 replies, 2 voices, and was last updated 6 years, 6 months ago by WCFM Forum.
- AuthorPosts
- June 6, 2018 at 6:50 pm #24413JuanBParticipant
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
- June 7, 2018 at 8:44 pm #24439WCFM ForumMember
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
- June 7, 2018 at 8:46 pm #24440WCFM ForumMember
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
- June 8, 2018 at 2:31 pm #24506JuanBParticipantThis reply has been marked as private.
- June 9, 2018 at 8:00 am #24557WCFM ForumMember
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
- AuthorPosts
- The topic ‘Hide vendor store info’ is closed to new replies.