helpful_editor_settings

With this filter you can specify which settings are passed to the wp_editor within Helpful’s settings. Helpful hides some options so you don’t have to load as much. Here you can find the default settings Helpful uses for the wp_editor.

/**
 * @param array $settings
 * @return array
 */
add_filter('editor_settings', function (array $settings) {
    $settings = [
        'teeny' => true,
        'media_buttons' => false,
        'textarea_rows' => 5,
        'tinymce' => false,
        'quicktags' => [
            'buttons' => 'strong,em,del,ul,ol,li,close,link',
        ],
    ];

    return $settings;
});

Was this post helpful?

Top