helick/better-excerpt

The Helick better excerpt plugin

Installs: 215

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:wordpress-plugin

v1.2.0 2019-07-31 20:15 UTC

This package is auto-updated.

Last update: 2024-04-29 04:07:15 UTC


README

Latest Version on Packagist Total Downloads Software License Quality Score

The plugin enables TinyMCE editor for post excerpt.

Requirements

Make sure all dependencies have been installed before moving on:

Install

Via Composer:

$ composer require helick/better-excerpt

Usage

Custom post type support

Control supported post types:

add_filter('helick_better_excerpt_supported_post_types', function (array $postTypes) {
    $postTypes[] = 'your-custom-post-type';

    return $postTypes;
});

Control the editor settings:

add_filter('helick_better_excerpt_editor_settings', function (array $settings) {
    $settings['media_buttons'] = true;

    return $settings;
});

Control the editor buttons:

add_filter('helick_better_excerpt_editor_buttons', function (array $buttons) {
    $buttons[] = 'alignleft';
    $buttons[] = 'alignright';
    $buttons[] = 'aligncenter';

    return $buttons;
});

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email evgenii@helick.io instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.