Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Unable rights to change policy title when submitting products
Tagged: policy
- This topic has 5 replies, 3 voices, and was last updated 6 years ago by WCFM Forum.
- AuthorPosts
- October 24, 2018 at 9:29 am #34715inspireParticipant
Hello,
How can i unable the right to give the name for product policy for store vendor, when he creates a product?
We want a standard title like – Policy – to be the title for all the products. Is confusing to have different name of this section for each product.Attachments:
You must be logged in to view attached files. - October 25, 2018 at 9:36 am #34934WCFM ForumMember
Hi,
Kindly add this code snippet to your site for the purpose –
add_filter( 'product_manage_fields_policies', function( $policy_fields, $product_id ) { if( isset( $policy_fields['wcfm_policy_tab_title'] ) ) { $policy_fields['wcfm_policy_tab_title']['class'] = 'wcfm_custom_hide'; $policy_fields['wcfm_policy_tab_title']['label_class'] = 'wcfm_custom_hide'; } return $policy_fields; }, 50, 2 ); add_filter( 'wcfm_product_policy_tab_title', function( $wcfm_product_policy_tab_title, $product_id ) { $wcfm_product_policy_tab_title = 'Policy'; return $wcfm_product_policy_tab_title; }, 50, 2);
Thank You
- November 9, 2018 at 9:21 am #36213AlexandruGuestThis reply has been marked as private.
- November 11, 2018 at 6:58 am #36314WCFM ForumMember
Hi,
Add this to your child theme’s functions.php
Thank You
- November 11, 2018 at 3:18 pm #36360AlexandruGuest
We did it, but there appears a conflict and it automatically signs out the vendor. Should i send you login info?
Thanks!
Alexandru - November 12, 2018 at 8:13 am #36425WCFM ForumMember
Hi,
I think that because of something else!
This code has nothing like that to make an user logged out.
You may disable this code snippet and take a look.
Just check what else you have changed recently!
Thank You
- AuthorPosts
- The topic ‘Unable rights to change policy title when submitting products’ is closed to new replies.