Created
August 23, 2018 09:58
-
-
Save hatsumatsu/ac644066ae20a210feb2ec435708a76a to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Modify ACF's WYSIWYG field toolbar | |
* @param array $toolbars toolbars | |
* @return array toolbars | |
*/ | |
function modify_acf_editor_toolbars( $toolbars ) { | |
$toolbars['Minimal' ] = array(); | |
$toolbars['Minimal' ][1] = array( | |
'link', | |
'unlink', | |
'removeformat' | |
); | |
return $toolbars; | |
} | |
add_filter( 'acf/fields/wysiwyg/toolbars' , 'modify_acf_editor_toolbars' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment