helick/better-excerpt
Composer 安装命令:
composer require helick/better-excerpt
包简介
The Helick better excerpt plugin
关键字:
README 文档
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.
统计信息
- 总下载量: 215
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-13