k1sul1 / custom-admin-notices
此插件允许您创建自定义通知,这些通知将显示在WordPress管理界面中。
0.4.2-beta
2017-05-05 14:13 UTC
Requires
- php: >=5.2
This package is auto-updated.
Last update: 2024-09-17 19:22:13 UTC
README
此WordPress插件允许您轻松创建在WP-admin中显示的自定义通知。
安装
最简单的安装方式是使用composer
composer require k1sul1/custom-admin-notices dev-master
但您也可以像通常一样将此存储库作为.zip文件下载并安装。
过滤器
can_banner_arguments
允许您调整查询参数。不清楚您为什么要这样做,但列出的可能参数如下: https://codex.wordpress.org/Class_Reference/WP_Query
can_notice_title
允许您自定义通知标题。不需要标题?让它为空!
can_notice_content
允许您自定义通知内容。
can_is_dismissible
允许您禁用或启用由插件或通过帖子ID生成的所有通知的删除。
贡献
欢迎贡献!功能愿望清单
- 更多钩子!
- 翻译?
感谢
此插件使用 https://github.com/nikcorg/wp-plugin-stem 作为基。查看它,它很棒。
许可证
MIT