承接 wpplex/wp-notify 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wpplex/wp-notify

最新稳定版本:1.0.0

Composer 安装命令:

composer require wpplex/wp-notify

包简介

A small notification class to manage your WordPress Admin Notifications.

README 文档

README

A small notification class to manage your WordPress Admin Notifications.

Usage

First, you init your class with a custom prefix (namespace for your notifications)

$notify = new wpplex\WP_Notify\WP_Notify( 'my-notif' );

Create your first notification

$id = 'notif-xxy';
$content = 'some random notif text';
$type = 'error';
$hide_button = true;
$notify->add_notification( $id, $content, $type, $hide_button );

Display your notification

$id = 'notif-xxy';
$display_count = 20; // times
$notify->display_notification( $id, $display_count );

Hide your notification

$id = 'notif-xxy';
$notify->hide_notification( $id );

统计信息

  • 总下载量: 520
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-01