soberwp / intervention
WordPress plugin containing modules to cleanup and customize wp-admin.
Fund package maintenance!
darrenjacoby
Installs: 111 142
Dependents: 1
Suggesters: 1
Security: 0
Stars: 642
Watchers: 27
Forks: 51
Open Issues: 8
Type:wordpress-plugin
Requires
- php: ^7.4|^8.0
- brick/varexporter: ^0.3.8
- illuminate/collections: ^8.83.27
Requires (Dev)
- composer/installers: ^2.0
- humbug/php-scoper: ^0.17.5
- symplify/easy-coding-standard: ^11.5
- dev-main
- 2.0.0
- 2.0.0-rc.5
- 2.0.0-rc.4
- 2.0.0-rc.3
- 2.0.0-rc.2
- 2.0.0-rc.1
- 1.3.0
- 1.2.0-p
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dependabot/npm_and_yarn/babel/traverse-7.23.2
- dev-dependabot/npm_and_yarn/postcss-8.4.31
- dev-dependabot/composer/brick/varexporter-tw-0.4.0
- dev-dependabot/composer/symplify/easy-coding-standard-tw-12.0
- dev-refactor-formatting
- dev-refactor-admin
- dev-archive-admin-interface
- dev-interface
- dev-namespace-deps
- dev-dev-master
- dev-package
This package is auto-updated.
Last update: 2024-12-08 09:30:38 UTC
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
all
all-not-administrator
(shortcut alias)administrator
author
editor
contributor
subscriber
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