# merchant/2.3.2/inc/modules/login-popup/admin/options.php

Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together &amp; More for WooCommerce – Merchant, version 2.3.2. 243 lines.

- Page: https://pluginprobe.com/plugins/merchant/2.3.2/code/inc/modules/login-popup/admin/options.php
- Raw: https://pluginprobe.com/plugins/merchant/2.3.2/raw/inc/modules/login-popup/admin/options.php
- Modified: 2026-09-17T17:48:06+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/merchant/2.3.2/code/inc/modules/login-popup/admin/options.php#L10-L20`.

```php
<?php

/**
 * Login Popup Options.
 * 
 * @package Merchant
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

// Settings

return array(
	array(
	'title'  => esc_html__( 'Settings', 'merchant' ),
	'module' => 'login-popup',
	'fields' => array(

		array(
			'id'      => 'shortcode',
			'type'    => 'text_readonly',
			'title'   => esc_html__( 'Shortcode', 'merchant' ),
			'desc'    => esc_html__( 'Copy this shortcode into pages to show login popup.', 'merchant' ),
			'default' => '[merchant_login_popup]',
		),

		array(
			'id'      => 'login_link_text',
			'type'    => 'text',
			'title'   => esc_html__( 'Login link text', 'merchant' ),
			'desc'    => esc_html__( 'Only visible to logout users.', 'merchant' ),
			'default' => esc_html__( 'Login', 'merchant' ),
		),

		array(
			'id'      => 'show_welcome_message',
			'type'    => 'switcher',
			'title'   => esc_html__( 'Show welcome message', 'merchant' ),
			'desc'    => esc_html__( 'Show a welcome message when the user it\'s logged in.', 'merchant' ),
			'default' => true,
			'ai_meta' => array(
				'toggle_for' => 'welcome_message_text',
				'usage_hint' => 'Enable this toggle before setting welcome_message_text. Controls whether a personalised welcome message is shown to logged-in users.',
			),
		),

		array(
			'id'        => 'welcome_message_text',
			'type'      => 'text',
			'title'     => esc_html__( 'Welcome message text', 'merchant' ),
			'desc'      => esc_html__( 'You can use these codes in the content.', 'merchant' ),
			'hidden_desc' => sprintf(
			/* Translators: %1$s: User first name, %2$s: User last name, %3$s: User email, %4$s: User login name, %5$s: User display name */
				__(
					'<strong>%1$s:</strong> displays the user’s first name<br><strong>%2$s:</strong> displays the user’s last name<br><strong>%3$s:</strong> displays the user’s email<br><strong>%4$s</strong> displays the user’s login name<br><strong>%5$s:</strong> displays the user’s display name.',
					'merchant'
				),
				'{user_firstname}',
				'{user_lastname}',
				'{user_email}',
				'{user_login}',
				'{display_name}'
			),
			/* Translators: 1. Display name */
			'default'   => sprintf( esc_html__( 'Welcome %s', 'merchant' ), '{display_name}' ),
			'condition' => array( 'show_welcome_message', '==', '1' ),
			'ai_meta'   => array(
				'toggled_by' => 'show_welcome_message',
				'usage_hint' => 'Supports template vars: {display_name}, {user_firstname}, {user_lastname}, {user_email}, {user_login}. Only shown when show_welcome_message is enabled.',
			),
		),

		array(
			'id'      => 'login-text-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Login text color', 'merchant' ),
			'default' => '#212121',
		),

		array(
			'id'      => 'login-text-color-hover',
			'type'    => 'color',
			'title'   => esc_html__( 'Login text color hover', 'merchant' ),
			'default' => '#515151',
		),

		array(
			'id'      => 'dropdown-link-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Dropdown link color', 'merchant' ),
			'default' => '#212121',
		),

		array(
			'id'      => 'dropdown-link-color-hover',
			'type'    => 'color',
			'title'   => esc_html__( 'Dropdown link color hover', 'merchant' ),
			'default' => '#515151',
		),

		array(
			'id'      => 'dropdown-background-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Dropdown background color', 'merchant' ),
			'default' => '#ffffff',
		),

	),
),
	array(
	'title'  => esc_html__( 'Popup Settings', 'merchant' ),
	'module' => 'login-popup',
	'fields' => array(

		array(
			'id'      => 'popup-width',
			'type'    => 'range',
			'title'   => esc_html__( 'Popup width', 'merchant' ),
			'min'     => 0,
			'max'     => 1000,
			'step'    => 1,
			'default' => 400,
			'unit'    => 'px',
		),

		array(
			'id'      => 'popup-title-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Title color', 'merchant' ),
			'default' => '#212121',
		),

		array(
			'id'      => 'popup-text-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Text color', 'merchant' ),
			'default' => '#212121',
		),

		array(
			'id'      => 'popup-icon-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Icon color', 'merchant' ),
			'default' => '#212121',
		),

		array(
			'id'      => 'popup-link-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Link color', 'merchant' ),
			'default' => '#212121',
		),

		array(
			'id'      => 'popup-button-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Button color', 'merchant' ),
			'default' => '#ffffff',
		),

		array(
			'id'      => 'popup-button-color-hover',
			'type'    => 'color',
			'title'   => esc_html__( 'Button color hover', 'merchant' ),
			'default' => '#ffffff',
		),

		array(
			'id'      => 'popup-button-border-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Button border color', 'merchant' ),
			'default' => '#212121',
		),

		array(
			'id'      => 'popup-button-border-color-hover',
			'type'    => 'color',
			'title'   => esc_html__( 'Button border color hover', 'merchant' ),
			'default' => '#757575',
		),

		array(
			'id'      => 'popup-button-background-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Button background color', 'merchant' ),
			'default' => '#212121',
		),

		array(
			'id'      => 'popup-button-background-color-hover',
			'type'    => 'color',
			'title'   => esc_html__( 'Button background color hover', 'merchant' ),
			'default' => '#757575',
		),

		array(
			'id'      => 'popup-link-color-hover',
			'type'    => 'color',
			'title'   => esc_html__( 'Link color hover', 'merchant' ),
			'default' => '#515151',
		),

		array(
			'id'      => 'popup-background-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Background color', 'merchant' ),
			'default' => '#ffffff',
		),

		array(
			'id'      => 'popup-footer-text-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Footer text color', 'merchant' ),
			'default' => '#212121',
		),

		array(
			'id'      => 'popup-footer-link-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Footer link color', 'merchant' ),
			'default' => '#212121',
		),

		array(
			'id'      => 'popup-footer-link-color-hover',
			'type'    => 'color',
			'title'   => esc_html__( 'Footer link color hover', 'merchant' ),
			'default' => '#515151',
		),

		array(
			'id'      => 'popup-footer-background-color',
			'type'    => 'color',
			'title'   => esc_html__( 'Footer background color', 'merchant' ),
			'default' => '#f5f5f5',
		),

	),
),
);

```
