# wpremote/6.76/wp_login_whitelabel.php

The WP Remote WordPress Plugin, version 6.76. 63 lines.

- Page: https://pluginprobe.com/plugins/wpremote/6.76/code/wp_login_whitelabel.php
- Raw: https://pluginprobe.com/plugins/wpremote/6.76/raw/wp_login_whitelabel.php
- Modified: 2026-01-29T13:59:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpremote/6.76/code/wp_login_whitelabel.php#L10-L20`.

```php
<?php
if (!defined('ABSPATH')) exit;
if (!class_exists('WPRWPLoginWhitelabel')) :

class WPRWPLoginWhitelabel {
	private $bvinfo;
	private $label;
	private $logo;

	public function __construct() {
		$this->bvinfo = new WPRInfo(new WPRWPSettings());

		$whitelabel_info = $this->bvinfo->getLPWhitelabelInfo();
		if (isset($whitelabel_info['label']) && is_string($whitelabel_info['label'])) {
			$this->label = $whitelabel_info['label'];
		}

		if (isset($whitelabel_info['logo']) && is_string($whitelabel_info['logo'])) {
			$this->logo = $whitelabel_info['logo'];
		}
	}

	public function init() {
		add_action('login_head', array($this, 'custom_login_head'));
		add_filter('login_message', array($this, 'custom_login_message'));
	}

	function custom_login_head() {
		if (empty($this->logo) ||
				!preg_match('/^data:image\/(jpeg|png);base64,[a-zA-Z0-9\/+]+={0,2}$/', $this->logo)) {

			return;
		}

		$logo_style = 'background-image: none, url("' . esc_attr($this->logo) . '") !important;';

		// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
		wp_register_style( 'bv-login-inline', false );
		wp_enqueue_style( 'bv-login-inline' );

		wp_add_inline_style(
			'bv-login-inline',
			'.login h1 a { ' . $logo_style . ' }'
		);
		// phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped
	}

	function custom_login_message($message) {
		if (empty($this->label)) {
			return;
		}

		return '<div style="
			text-align: center;
			font-size: 22px;
			font-weight: bold;
			color: #333;
			margin-top: 10px;
			margin-bottom: 10px;
		">' . esc_html($this->label) . '</div>';
	}
}
endif;
```
