White Label

You are here:
Estimated reading time: 1 min

Rey now has the ability to be rebranded and customized in the backend and frontend.

Please use this code snippet below by adding it in wp-config.php :

define('THEME_PROPERTIES', [
	// Theme title used in menus and other places
	'theme_title' => 'My Theme',
	// Absolute path to Icon used for the theme menu, in the backend
	// eg: https://mysite.com/wp-content/uploads/some-icon.svg
	'menu_icon' => '',
	// Core plugin title, used in various places
	'core_title' => 'My Core',
	// Disables various "rey" symbols, "What's new" page, etc.
	'branding' => false,
	// Disables "help" links that go to Rey's KB
	'kb_links' => false,
	// Exclude boxes in Rey dashboard
	'excluded_dashboxes' => [
		'help',
		'newsletter',
		'register',
		'required_plugins',
		'versions',
		'child_theme',
		'system_status',
	],
	// Replaces "Rey" button icons in backend, admin bar or Elementor
	// Absolute path eg: https://mysite.com/wp-content/uploads/some-icon.svg
	'button_icon' => '',
	// Fallback text for "Rey" button icons, if the icon is disabled
	'button_text' => 'REY',
	// Disables the Setup Wizard
	'setup_wizard' => false,
	// Disables the demo import page. Better to just remove "One click demo import" plugin entirely.
	// supports "user_id" & "capability"
	'demo_import' => false,
	// Disables the Plugins manager page in Rey sub-menu.
	// supports "user_id" & "capability"
	'plugins_manager' => false,
	// Disables the Elements manager page in Rey sub-menu.
	// supports "user_id" & "capability"
	'elements_manager' => false,
	// Disables the Modules manager page in Rey sub-menu.
	// supports "user_id" & "capability"
	'modules_manager' => false,
	// Disables the Theme admin menu in the backend
	// supports "user_id" & "capability"
	// 'admin_menu' => false,
	// Disables the theme menu in the admin bar
	// 'admin_bar_menu' => false,
	// Disables the Elementor Menu in the editor bottom-left toolbar
	// 'elementor_menu' => false,
	// Override theme data in Appearance > Themes
	'theme_data' => [
		// Parent theme
		'parent' => [
			'name' => 'My theme',
			'screenshot' => [
				'https://via.placeholder.com/1200x900' // absolute path to screenshot
			],
			'description' => 'Custom description for the theme.',
			'author' => 'Author Name',
			'authorAndUri' => '<a href="#">Author Name</a>',
		],
		// Child theme
		'child' => [
			'name' => 'My theme - Child',
			'screenshot' => [
				'https://via.placeholder.com/1200x900' // absolute path to screenshot
			],
			'description' => 'Custom description for the theme.',
			'author' => 'Author Name',
			'authorAndUri' => '<a href="#">Author Name</a>',
		],
	],
	// Will cleanup Rey's module plugins (Fullscreen menu, Preloaders etc.)
	'whitelabel_plugins' => true,
]);

Some of the parameters support a “user_id” argument (eg: 10), or by “capability” (eg: “administrator”) which will disable those properties except for the user ID or capability, for example:

Supports the user ID “10”. If you’re not sure how to get the ID, here’s 10 ways how to do it.

'elements_manager' => [
	'user_id' => 10
],

Supports the user capability of ‘administrator’:

'elements_manager' => [
	'capability' => 'administrator'
],
Was this article helpful?
Dislike 1
Views: 870