Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
I

intervention

> 编程语言
Open source

WordPress plugin to configure wp-admin and application state using a single config file.

643 stars0 likes1 views
WebsiteGitHub

About

WordPress plugin to configure wp-admin and application state using a single config file.

Easily customize wp-admin and configure application options.

View on WordPress.org

Installation

Composer

bash
$ composer require wpackagist-plugin/intervention

WP-CLI

bash
$ 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
 [

    ],
    '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
 [
        'common.adminbar',
    ],
];

User Roles

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

Options

Login

  • 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

  • dashboard
  • dashboard.home
  • dashboard.updates

Posts

  • posts
  • posts.all
  • posts.item
  • posts.categories.all
  • posts.categories.item
  • posts.tags.all
  • posts.tags.item

Media

  • media
  • media.all
  • media.add

Pages

  • pages
  • pages.all
  • pages.item

Comments

  • comments
  • comments.all

Appearance

  • appearance
  • appearance.themes
  • appearance.customize
  • appearance.widgets
  • appearance.menus
  • appearance.theme-editor

Plugins

  • plugins
  • plugins.all
  • plugins.add
  • plugins.plugin-editor

Users

  • users
  • users.all
  • users.add
  • users.profile

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
 [
        'general' => [
            'tagline' => 'Intervention Example',
            'wp-address' => 'https://example.com/wp',
            'site-address' => 'https://example.com',
            'admin-email' => '[email protected]',
            '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

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPdashboardinterventionphpwoocommerce

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言