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
Requires
- php: >=7.1
- composer/installers: ^1.6
- helick/contracts: ^1.1
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-29 05:42:35 UTC
README
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.