soberwp/intervention
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.
Installation
$ composer require wpackagist-plugin/intervention
$ wp plugin install intervention --activate
Requirements
- PHP >= 7.4.0
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
allall-not-administrator(shortcut alias)administratorauthoreditorcontributorsubscriber
Options
Login
Common
- common.adminbar
- common.editor
- common.footer
- common.menu
- common.tabs
- common.title-link
- common.updates
- common.all.list
- common.all.pagination
- common.all.search
- common.all.subsets
Dashboard
Posts
- posts
- posts.all
- posts.item
- posts.categories.all
- posts.categories.item
- posts.tags.all
- posts.tags.item
Media
Pages
Comments
Appearance
- appearance
- appearance.themes
- appearance.customize
- appearance.widgets
- appearance.menus
- appearance.theme-editor
Plugins
Users
Tools
- tools
- tools.available
- tools.import
- tools.export
- tools.site-health
- tools.export-personal-data
- tools.erase-personal-data
Settings
- settings
- settings.general
- settings.writing
- settings.reading
- settings.discussion
- settings.media
- settings.permalinks
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
- theme
- posts/posttypes
- taxonomies
- menus
- plugins
- general
- reading
- writing
- discussion
- media
- permalinks
- privacy
Quick Reference
- Full configuration options
- Full configuration example
- Register custom posttype
- Register custom taxonomy
- Register custom image sizes
- Register custom nav menu
- Remove comments
- Remove posttype
- Remove taxonomy
- Remove image size
- Remove emoji
- Remove attachments
- Enable custom media/mime types
Connect
- Twitter: @withjacoby
soberwp/intervention 适用场景与选型建议
soberwp/intervention 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 120.88k 次下载、GitHub Stars 达 642, 最近一次更新时间为 2016 年 09 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 soberwp/intervention 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 soberwp/intervention 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 soberwp/intervention 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Must-use plugin integrating WordPress with the Upsun platform: environment awareness, router-cache friendliness, safe preview clones, deploy migrations, Site Health checks, and a wp upsun CLI command.
Inertia.js server-side adapter for PHP. Handles full visits, Inertia XHR visits, asset-version 409 handshakes and partial reloads. Framework-agnostic, with transparent WordPress integration.
Adds Cache-Tag HTTP response headers for singular WordPress content and purges Cloudflare by tag when content changes.
AI Chatbot & Helpdesk Agent for WooCommerce. Connects your store to Egentify for AI-powered chat, order tracking, email, and ticketing.
MIDDAG's reference architecture for a WordPress plugin — composes the OSS framework/wordpress/ui libraries end to end.
Assets helper package for the Hybrid Core framework.
统计信息
- 总下载量: 120.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 647
- 点击次数: 32
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-14