laraish/admin-notice
Composer 安装命令:
composer require laraish/admin-notice
包简介
A simple helper for admin notice on WordPress admin pages.
关键字:
README 文档
README
This is a simple helper lib for sending notice in WordPress admin pages.
Usage
Before you can use it be sure init it by:
use Laraish\AdminNotice\AdminNotice; AdminNotice::init();
Basic
AdminNotice::success('Task Completed!');
Other type of notices
- success
- error
- warning
- info
Dismissible Notice
The second parameter determine if the notice has a 'dismiss' button.
AdminNotice::success('Task Completed!', true);
Persistent Notice
To make the notice showing persistently, passing a notice id to the method.
AdminNotice::success('Task Completed!', true, 'your-unique-notice-id');
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-14