Last active
September 5, 2016 16:26
-
-
Save johnolek/8657ca552fd931b31ae4a0bbb517eb9f to your computer and use it in GitHub Desktop.
Remove Visual Editor from Gravity Forms Notifications Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function remove_gf_notification_visual_editor($settings, $editor_id) | |
{ | |
if ($editor_id === 'gform_notification_message') { | |
$settings['tinymce'] = false; | |
} | |
return $settings; | |
} | |
add_filter('wp_editor_settings', 'remove_gf_notification_visual_editor', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment