Skip to content

Instantly share code, notes, and snippets.

@certainlyakey
Created March 16, 2018 09:50
Show Gist options
  • Save certainlyakey/abfaa4a19f4b4da93a4de531d957d969 to your computer and use it in GitHub Desktop.
Save certainlyakey/abfaa4a19f4b4da93a4de531d957d969 to your computer and use it in GitHub Desktop.
Remove unwanted TinyMCE items from ACF Wysiwyg editor field toolbar (Wordpress)
<?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