How could i became "Last Name" of "Profile Update" as "no required" field?

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!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Groups & Staffs How could i became "Last Name" of "Profile Update" as "no required" field?

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #29750
      MOHO
      Participant

      I enable your “GROUP & STAFF” plugin, and admin could set each vendor capability.

      When admin set the vendor capability at “/admin/vendors-manage/” page.

      We no use “Last Name” field.

      How could i became “Last Name” of “Profile Update” as “no required” field?

      I want to keep field value = Null

      thank.

      Attachments:
      You must be logged in to view attached files.
    • #29926
      WCFM Forum
      Keymaster

      Hi,

      Kindly add this code for the purpose –

      function wcfm_profile_field_vendor_manage_custom( $profile_fileds ) {
      	if( isset( $profile_fileds['last_name'] ) ) {
      		unset( $profile_fileds['last_name']['custom_attributes'] );
      		$profile_fileds['last_name']['class']  = 'wcfm_custom_hide';
      		$profile_fileds['last_name']['labe_class'] = 'wcfm_custom_hide';
      	}
      	return $profile_fileds;
      }
      add_filter( 'wcfm_profile_field_vendor_manage', 'wcfm_profile_field_vendor_manage_custom' );

      Just to mention, this is another example of managing fields using filter 🙂

      Thank You

Viewing 1 reply thread
  • The topic ‘How could i became "Last Name" of "Profile Update" as "no required" field?’ is closed to new replies.