WordPress plugin intelligence profile

WP Local Toolbox

A simple plugin to help manage development over local, staging and production servers.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.2
Current version1.2.3
WordPress coverageTested up to WordPress 4.2
Minimum stackWP — · PHP —
Directory statusactive
Last directory update25 Jun 201511y ago
Active installations70Adoption metric — not a quality score
WordPress.org rating4.6 / 5 from 7 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records WP Local Toolbox version 1.2.3 as active, updated 11y ago and tested up to WordPress 4.2.

Overview

About this plugin

Through constants defined in wp-config, you can disable plugins, disable the loading of external files, set search engine visibility, display or hide the admin bar, display the server name and change the color of the admin bar, or literally anything else you can think of. All without touching the database, so you can push and pull without worrying.

com/joeguilmette/wp-local-toolbox

Admin Bar

Change the color of your admin bar and display the name of the current server environment. Green for local, orange for staging, and of course, red for production. You can also force the front end admin bar to hide, to display, and can even set it to display when logged out.

-

WPLT_SERVER: The name of your server environment. It will be displayed in the admin bar at browser widths greater than 1030px. If left undefined, the plugin will make no changes to the admin bar.

If not defined as PRODUCTION or LIVE, the plugin will enable ‘Discourage search engines from indexing this site’ to prevent your development and staging servers from being indexed. This option is not stored in the database, so your production server will still look to the actual setting on the Reading page.

-

WPLT_COLOR: Determines the color of the admin bar. You can set this to any CSS color. If left undefined, will use the following defaults:

  • PRODUCTION / LIVE: red
  • STAGING / TESTING: orange
  • LOCAL / DEV: green

-

WPLT_ADMINBAR: Show or hide the admin bar on the frontend. FALSE will force it to be hidden, TRUE will force it to display, ALWAYS will display the admin bar even when logged out. php, but doesn’t attempt to overcome any CSS based hiding of the admin bar.

php:

// set server environment to 'LOCAL' define('WPLT_SERVER', 'local');

// set admin bar color to #800080 define('WPLT_COLOR', 'purple');

// show the admin bar even when logged out define('WPLT_ADMINBAR', 'always');

Disable Plugins

Pass a serialized array in this constant to disable plugins. This does not store any data in the database, so plugins that are manually deactivated or activated through the admin panel will stay so.

In order for this feature to function properly, WP Local Toolbox must be installed as an mu-plugin. org/Must_Use_Plugins. We’re investigating ways to avoid this requirement; if you have any ideas we’d love to hear it!

  • WPLT_DISABLED_PLUGINS: A serialized array of plugins to disable.

php:

php' ) ));

Post Update Notifications

Receive notifications when any page, post, or attachment is added or updated. Notifications can be received via email, or can be sent to a Slack channel via their Incoming WebHook API.

This is helpful in production to see if a client has submitted a new post, or in development to see if data is being added to the staging environment so you don’t accidentally overwrite new posts when pushing databases around.

-

WPLT_NOTIFY: Define this constant as the email address where you’d like to be notified of post updates. You can specify either an email address or a Slack Incoming WebHook URL. com/services/new/incoming-webhook/

-

WPLT_NOTIFY_CHANNEL: If WPLT_NOTIFY is set to a Slack Incoming WebHook URL, you can specify the channel that the notification will be posted to. If left unset, it will post to the default channel specified in Slack’s Incoming WebHooks settings page.

-

WPLT_DISABLE_ATTACHMENT_NOTIFY: If set, this will disable notifications for attachments.

php:

com')

com/services/etc'); define('WPLT_NOTIFY_CHANNEL','#channel');

Airplane Mode

Control loading of external files when developing locally. WP loads certain external files (fonts, gravatar, etc) and makes external HTTP calls. This isn’t usually an issue, unless you’re working in an evironment without a web connection.

This plugin removes / unhooks those actions to reduce load time and avoid errors due to missing files.

On and Off: Can be toggled from the admin bar by clicking ‘Airplane Mode’. In the admin bar a ✗ or ✓ will indicate if Airplane Mode is enabled or disabled.

  • WPLT_AIRPLANE: Set this to anything to enable the Airpane Mode toggle.

php:

// enable the Airplane Mode toggle define('WPLT_AIRPLANE', 'true');

Modification

php.

I’d love a pull request if you come up with something useful.

= 'PRODUCTION') { // Everything except PRODUCTION/LIVE SERVER

// Hide from robots add_filter( 'pre_option_blog_public', '__return_zero' );

} else { // PRODUCTION/LIVE SERVER

}

Notes

As a special thank you, this plugin will remove the ridiculous Howdy, that is prepended to the username in the admin bar.

You’re welcome.

Credit

-

com/markjaquith/1044546

  • Using this fork from Andrey Savchenko: https://gist.github.com/Rarst/4402927

-

com/norcross/airplane-mode

-

com/2011/04/admin-bar-tricks/

-

A healthy refactoring from Jon Brown of 9seeds

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • admin
  • administration
  • dashboard
  • notification
  • responsive
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.2

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.2.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.2
Minimum requirementsWordPress not listed · PHP not listed
Update activity25 Jun 201511y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.