Wordpress 如何向ACF tiny MCE编辑器添加按钮
如何将按钮添加到ACF所见即所得编辑器(例如“文本颜色”按钮)。 我尝试了此代码,但不起作用:(Wordpress 如何向ACF tiny MCE编辑器添加按钮,wordpress,tinymce,advanced-custom-fields,Wordpress,Tinymce,Advanced Custom Fields,如何将按钮添加到ACF所见即所得编辑器(例如“文本颜色”按钮)。 我尝试了此代码,但不起作用:( add_filter( 'acf/fields/wysiwyg/toolbars' , 'dw_add_buttons_to_acf_wysiwyg_editor' ); function dw_add_buttons_to_acf_wysiwyg_editor( $toolbars ){ $toolbars['Full'][2][] = 'forecolor'; return
add_filter( 'acf/fields/wysiwyg/toolbars' , 'dw_add_buttons_to_acf_wysiwyg_editor' );
function dw_add_buttons_to_acf_wysiwyg_editor( $toolbars ){
$toolbars['Full'][2][] = 'forecolor';
return $toolbars;
}