2017 © Pedro Peláez
 

wordpress-plugin intervention

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

image

soberwp/intervention

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

  • Monday, July 30, 2018
  • by soberwp
  • Repository
  • 24 Watchers
  • 266 Stars
  • 4,630 Installations
  • PHP
  • 3 Dependents
  • 1 Suggesters
  • 24 Forks
  • 3 Open issues
  • 9 Versions
  • 25 % Grown

The README.md

Intervention

Easily customize wp-admin and configure application options., (*1)

Installation

Composer/Bedrock, (*2)

$ composer require soberwp/intervention:dev-main
$ wp plugin activate intervention

WP-CLI, (*3)

$ wp plugin install https://github.com/soberwp/intervention/archive/master.zip --activate

Requirements

Usage

Create config/intervention.php for Sage 10, resources/intervention.php for Sage 9, or intervention.php inside your theme root folder and return an array., (*4)

<?php

return [
    'application' => [

    ],
    'wp-admin.$role|$username' => [

    ],
];

For the options, you can use dot notatation, a standard array, or a combination., (*5)

Admin

Remove components from wp-admin., (*6)

Return wp-admin.$role or wp-admin.$username, (*7)

  • Support for multiple user roles using a pipe operator.
    • editor|author
<?php

return [
    'wp-admin.$role|$username' => [
        'common.adminbar',
    ],
];

User Roles, (*8)

  • 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., (*9)

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

Return application., (*10)

New! You can auto-generate/export a config file from the database using Tools/Intervention in the WordPress admin., (*11)

<?php

return [
    'application' => [
        'general' => [
            'tagline' => 'Intervention',
            'wp-address' => 'https://soberwp.com/wp',
            'site-address' => 'https://soberwp.com',
            'admin-email' => 'example@soberwp.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

Updating

Composer

  • Change the composer.json version to ^2.0.0**
  • Check CHANGELOG.md for any breaking changes before updating.
$ composer update

WordPress

Includes support for github-updater to track updates through wp-admin., (*12)

Roadmap

  • ✅ Export database values to Intervention config file.
  • ✅ Save to database manual option (update_option vs pre_option).
  • (WIP) Intervention wp-admin interface.
  • Better support for the block editor.
  • Support wp-admin custom post types.

Have a suggestion, or want to track new releases? @soberwp, (*13)

If you would like to buy me a coffee, paypal.me/darrenjacoby, (*14)

The Versions

30/07 2018

dev-master

9999999-dev https://github.com/soberwp

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

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress

26/08 2017

dev-package

dev-package https://github.com/soberwp

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

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress

26/08 2017

1.2.0-p

1.2.0.0-patch https://github.com/soberwp

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

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress

26/08 2017

1.2.0

1.2.0.0 https://github.com/soberwp

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

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress

11/03 2017

1.1.1

1.1.1.0 https://github.com/soberwp

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

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress

02/11 2016

1.1.0

1.1.0.0 https://github.com/soberwp

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

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress

26/09 2016

1.0.2

1.0.2.0 https://github.com/soberwp

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

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress

22/09 2016

1.0.1

1.0.1.0 https://github.com/soberwp

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

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress

15/09 2016

1.0.0

1.0.0.0 https://github.com/soberwp

WordPress plugin containing modules to help clean up and modify the backend easily.

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress