Agencies can change the name, description, author, and URL that WordPress shows for UpdateBee. The plugin files and the updatebee slug stay the same. Branding changes what people see on the Plugins screen, in the UpdateBee settings header, and in email and Slack alerts.

Open the branding fields in the Advanced Tab

The Branding Card under Advanced in UpdateBee's Settings
The Branding Card under Advanced in UpdateBee’s Settings
  1. Open UpdateBee. On a single site that is Tools → Automatic Updates. On Multisite, use the network admin path in the article UpdateBee on Multisite.
  2. Open Advanced.
  3. On the Plugin branding card, select the gear icon, which will open a drawer with the branding options.

The card explains that these fields change how the plugin appears on the Plugins screen, in the admin header, and in emails and Slack alerts. Leave a field empty to keep the default.

UpdateBee Branding Options
UpdateBee Branding Options

What each field changes

FieldWhen it is filled in
Plugin nameReplaces the name on the Plugins screen, the UpdateBee header, and the name used in emails and Slack. The card shows Shown as: after you save a name.
DescriptionReplaces the Plugins’s screen description.
Plugin authorReplaces the author on the Plugins screen.
Plugin URLReplaces the plugin and author URLs on the Plugins screen.
License VisibilityDetermines if the license tab should be visible or not.

Select Save. Cancel discards unsaved edits. An empty field falls back to the header default. The name default is UpdateBee.

Gating the License Tab Visibility

Since any admin can update the branding and thus enable/disable the license tab view, there are several gated options to ensure branding remains enabled.

Place Code in wp-config.php

You can place constants in wp-config.php so that branding can’t be overridden.

Use constant UPDATEBEE_BRANDING to ensure branding remains on.

Here’s an example:

define(
	'UPDATEBEE_BRANDING',
	array(
		'name'         => 'Agency Updates',
		'description'  => 'Managed automatic updates.',
		'author'       => 'Agency Co',
		'url'          => 'https://agency.example/',
		'hide_license' => true,
	)
);Code language: PHP (php)

Create an MU-Plugin

If you’d rather use an mu-plugin, use the following snippet.

<?php
/**
 * Plugin Name: UpdateBee Branding
 * Description: Lock UpdateBee branding for this site.
 */

add_filter(
	'updatebee_branding_locked',
	static function () {
		return true;
	}
);

add_filter(
	'updatebee_branding',
	static function ( $values ) {
		if ( ! is_array( $values ) ) {
			$values = array();
		}

		return array_merge(
			$values,
			array(
				'name'         => 'Agency Updates',
				'description'  => 'Managed automatic updates.',
				'author'       => 'Agency Co',
				'url'          => 'https://agency.example/',
				'hide_license' => true,
			)
		);
	}
);Code language: PHP (php)
Tagged:

Leave a Reply

Your email address will not be published. Required fields are marked *