Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Remove visual editor from vendor dashboard

WCMp Core

Tagged: 

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #133652
      Uros Eleven
      Participant

      Hi, how do we remove the visual editor (WYSIWYG) from Vendor’s dashboard (products…)? We only need the basic editor so that it is as easy ss possible for the vendor.

      Thanks!

    • #133668

      Hi Uros, please use this code to remove the WYSIWYG :

      add_filter('wcmp_fpm_fields_general', 'customize_wcmp_add_product_fields');
      function customize_wcmp_add_product_fields($fields){
         if(isset($fields['description'])){
             $fields['description']['type'] = 'textarea';
         }
         if(isset($fields['excerpt'])){
             $fields['excerpt']['type'] = 'textarea';
         }
         return $fields;
      }
      Copy
    • #133778
      Uros Eleven
      Participant

      Hi, I tried it but it’s still visible for Product Short Description. Any other suggestions?
      Thanks!

    • #133815
      Uros Eleven
      Participant

      Already fixed the issue by overriding the original plugin file. You can close the ticket

    • #133840

      Sure Uros 🙂

Viewing 4 reply threads

The topic ‘Remove visual editor from vendor dashboard’ is closed to new replies.