承接 soberwp/intervention 相关项目开发

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

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

soberwp/intervention

最新稳定版本:2.0.0

Composer 安装命令:

composer require soberwp/intervention

包简介

WordPress plugin containing modules to cleanup and customize wp-admin.

关键字:

README 文档

README

Easily customize wp-admin and configure application options.

View on WordPress.org

Installation

Composer

$ composer require wpackagist-plugin/intervention

WP-CLI

$ wp plugin install intervention --activate

Requirements

Usage

Create config/intervention.php for Sage 10, or intervention.php inside your theme root folder and return an array.

<?php return [ 'application' => [ ], 'wp-admin.$role|$username' => [ ], ];

For the options, you can use dot notatation, a standard array, or a combination.

Admin

Remove components from wp-admin.

Return wp-admin.$role or wp-admin.$username

  • Support for multiple user roles using a pipe operator.
    • editor|author
<?php return [ 'wp-admin.$role|$username' => [ 'common.adminbar', ], ];

User Roles

  • all
  • all-not-administrator (shortcut alias)
  • administrator
  • author
  • editor
  • contributor
  • subscriber

Options

Login

Common

Dashboard

Posts

Media

Pages

Comments

Appearance

Plugins

Users

Tools

Settings

Application

Set application options.

  • Options are automatically changed to read only fields in wp-admin.
  • Options can be placed under version control.

Return application.

Tip: automate exporting a config file from the database using Tools→Intervention in the WordPress admin.

<?php return [ 'application' => [ 'general' => [ 'tagline' => 'Intervention Example', 'wp-address' => 'https://example.com/wp', 'site-address' => 'https://example.com', 'admin-email' => 'example@example.com', 'membership' => false, 'default-role' => 'editor', 'language' => 'en_US', 'timezone' => 'Africa/Johannesburg', 'date-format' => 'F j Y', 'time-format' => 'g:i a', 'week-starts' => 'Mon', ], ], ];

Options

Quick Reference

Connect

统计信息

  • 总下载量: 118.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 650
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 645
  • Watchers: 26
  • Forks: 51
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固