Last active
April 19, 2024 02:08
-
-
Save mishterk/6bfc12d9d2b5f4581680a671dbb918b1 to your computer and use it in GitHub Desktop.
Register custom WYSIWYG field toolbar options with Advanced Custom Fields for WordPress (ACF).
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 | |
add_filter( 'acf/fields/wysiwyg/toolbars', function ( $toolbars ) { | |
$toolbars['Bare'] = []; | |
$toolbars['Bare'][1] = [ 'forecolor', 'link', 'strikethrough', 'bold', 'italic' ]; | |
return $toolbars; | |
} ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment