Created
March 16, 2018 09:50
-
-
Save certainlyakey/abfaa4a19f4b4da93a4de531d957d969 to your computer and use it in GitHub Desktop.
Remove unwanted TinyMCE items from ACF Wysiwyg editor field toolbar (Wordpress)
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 acf_add_wysiwyg_toolbar($toolbars) { | |
$toolbars['Bare'] = array(); | |
$toolbars['Bare'][1] = array('bold', 'italic', 'link', 'unlink', 'removeformat'); | |
return $toolbars; | |
} | |
add_filter('acf/fields/wysiwyg/toolbars', 'acf_add_wysiwyg_toolbar'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment