Support

Account

Home Forums ACF PRO Remove Media button from WYSIWYG (acf form)

Solved

Remove Media button from WYSIWYG (acf form)

  • Hi,

    How can I remove the media upload button from the WYSIWYG content area on a front end ACF Form please?

    I’ve added uploader => basic but that doesn’t change anything.

    Thanks

  • This snippet worked for me.

    add_filter( 'acf/get_valid_field', 'change_post_content_type');
    function change_post_content_type( $field ) { 
        if($field['type'] == 'wysiwyg') {
            $field['tabs'] = 'visual';
            $field['toolbar'] = 'basic';
            $field['media_upload'] = 0;
        }
        return $field;
    }
  • Thank you. Works for me either

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.