定制 underpin/admin-bar-menu-loader 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

underpin/admin-bar-menu-loader

Composer 安装命令:

composer require underpin/admin-bar-menu-loader

包简介

Admin Menu Bar Loader for Underpin

README 文档

README

Loader That assists with adding admin bars menus to a WordPress website.

Installation

Using Composer

composer require underpin/loaders--admin-bar-menus

Manually

This plugin uses a built-in autoloader, so as long as it is required before Underpin, it should work as-expected.

require_once(__DIR__ . '/underpin-admin-bar-menus/underpin-admin-bar-menus.php');

Setup

  1. Install Underpin. See Underpin Docs
  2. Register new admin menus as-needed.

Admin Menu Example

A very basic example could look something like this.

\Underpin\underpin()->admin_bar_menus()->add( 'menu_bar_key', [
	'children'    => [],
	'capability'  => 'administrator',
	'id'          => 'menu_bar_id', // Required
	'args'        => [ /* See WP_Admin_Bar::add_menu */ ],
	'position'    => 200,
	'name'        => 'Menu Bar',
	'description' => 'A menu bar example',
] );

Alternatively, you can extend Admin_Bar_Menu and reference the extended class directly, like so:

underpin()->admin_bar_menus()->add('menu_bar-key','Namespace\To\Class');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2021-05-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固