upperdog/client-admin-cleanup 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

upperdog/client-admin-cleanup

最新稳定版本:v1.1.0

Composer 安装命令:

composer require upperdog/client-admin-cleanup

包简介

This WordPress plugin hides and restricts access to some parts of the wp-admin for clients.

关键字:

README 文档

README

This WordPress plugin hides and restricts access to some parts of the wp-admin for clients. It's like cleaning up the UI of things they don't need. For example, it hides and restricts access to the plugins, themes, and updates sections. Developers and agencies who maintain their client's sites usually want to have full control of these parts of the site.

This plugin is not released in the official WordPress Plugins directory. It is developed for our own needs. We will not be able provide support for this plugin. Please fork the plugin if you want to customize it to your own needs.

This plugin:

  • Restricts access to plugins, themes, customizer, updates, and Jetpack.
  • Removes unused dashboard widgets.

Specify allowed users

Developers can use the clients_admin_cleanup_allowed_users filter to specify which users are allowed to see update notifications. Add the username of each allowed user to an array like in the following example:

function site_client_admin_cleanup_allowed_users() {
    $allowed_users = array( 'bill', 'melinda' );
    return $allowed_users;
}
add_filter( 'client_admin_cleanup_allowed_users', 'site_client_admin_cleanup_allowed_users' );

Compatibility with remote management services

This plugin has only been tested with ManageWP. ManageWP has to connect to the site with a user account that is allowed to see updates.

Manual installation

  1. Upload the client-admin-cleanup directory to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.

Composer installation

Run the following command to add the plugin to your composer.json file.

composer require upperdog/client-admin-cleanup

Changelog

1.1.0 (2020-04-27)

  • Block access to more admin pages.
  • Remove admin menu items for tools, settings.
  • Minor refactoring and code cleanup.

1.0.0 (2018-10-27)

  • Initial release.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2018-10-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固