remove tiny mce

This topic contains 3 replies, has 3 voices, and was last updated by WCFM Forum WCFM Forum 1 week, 5 days ago.

  • Author
    Posts
  • #101975
    Avatar
    jorsenmejia
    Participant

    how to remove tiny mce on product manager fields?

  • #101976
    Avatar
    jorsenmejia
    Participant

    Take note for admin side*

  • #101995
    Avatar
    Sushobhan
    Keymaster

    If you want to disable Tiny MCE editor completely in WCFM dashboard you can use the following snippet –

    function disable_tiny_mce_editor($allow) {
        return '';
    }
    add_filter('wcfm_is_allow_rich_editor', 'disable_tiny_mce_editor', 501);

    Add this code to your child theme’s functions.php

    In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

    By the way, what do you mean by “Take note for admin side*”? Does it mean, you want to only disable Tiny mce editor for vendors? If that is the case please use the following snippet.

    function disable_tiny_mce_editor_for_vendors($allow) {
        if( wcfm_is_vendor() ) return '';
        return $allow;
    }
    add_filter('wcfm_is_allow_rich_editor', 'disable_tiny_mce_editor_for_vendors', 501);
  • #106038
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    If you are using WCFM Ultimate then may manage this from WCFM Capability setting as well.

    Please set OFF “Rich Editor” from WCFM Capability setting – https://ibb.co/9V7Sgnw

    Thank You

You must be logged in to reply to this topic.