承接 tfrommen/dobby 相关项目开发

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

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

tfrommen/dobby

Composer 安装命令:

composer require tfrommen/dobby

包简介

Dobby, the friendly Admin Elf, takes care of all your (unwanted) admin notices.

README 文档

README

Version Status Downloads License

Dobby, the friendly Admin Elf, takes care of all your (unwanted) admin notices.

Installation

Install with Composer:

composer require tfrommen/dobby

Or:

  1. Download ZIP.
  2. Upload contents to the /wp-content/plugins/ directory on your web server.
  3. Activate the plugin through the Plugins menu in WordPress.
  4. See only a single admin notice, if at all.

Requirements

This plugin requires PHP 5.4 or higher, but you really should be using PHP 7 or higher, as we all know.

Usage

Dobby captures everything that gets printed on one of the admin notice hooks (i.e., network_admin_notices, user_admin_notices, admin_notices and all_admin_notices), and hides it, for now. In case Dobby did capture anything, he will inform you (yes, via an admin notice).

Dobby in Action

Filters

In order to customize certain aspects of the plugin, it provides you with several filters. For each of these, a short description as well as a code example on how to alter the default behavior is given below. Just put the according code snippet in your theme's functions.php file or your customization plugin, or to some other appropriate place.

\tfrommen\Dobby\FILTER_THRESHOLD (dobby.threshold)

This filter lets you customize the minimum number of admin notices required for Dobby to take action. The default value is 1.

Usage Example:

<?php
/**
 * Filter the minimum number of admin notices required for Dobby to take action.
 *
 * @param int $threshold Required minimum number of admin notices.
 */
add_filter( \tfrommen\Dobby\FILTER_THRESHOLD, function () {

	return 3;
} );

统计信息

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

GitHub 信息

  • Stars: 36
  • Watchers: 4
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固