Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Register custom WYSIWYG field toolbar options with Advanced Custom Fields for WordPress (ACF).
<?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
You can’t perform that action at this time.