# quadmenu/3.3.8/vendor_packages/wp-notice-plugin-promote.php

QuadMenu – Mega Menu, version 3.3.8. 141 lines.

- Page: https://pluginprobe.com/plugins/quadmenu/3.3.8/code/vendor_packages/wp-notice-plugin-promote.php
- Raw: https://pluginprobe.com/plugins/quadmenu/3.3.8/raw/vendor_packages/wp-notice-plugin-promote.php
- Modified: 2025-11-28T19:23:30+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/quadmenu/3.3.8/code/vendor_packages/wp-notice-plugin-promote.php#L10-L20`.

```php
<?php

if ( class_exists( 'QuadLayers\\WP_Notice_Plugin_Promote\\Load' ) ) {
		add_action('init', function() {
				/**
		 *  Promote constants
		 */
		define( 'QUADMENU_PROMOTE_LOGO_SRC', plugins_url( '/assets/backend/img/logo.jpg', QUADMENU_PLUGIN_FILE ) );
		/**
		 * Notice review
		 */
		define( 'QUADMENU_PROMOTE_REVIEW_URL', 'https://wordpress.org/support/plugin/quadmenu/reviews/?filter=5#new-post' );
		/**
		 * Notice premium sell
		 */
		define( 'QUADMENU_PROMOTE_PREMIUM_SELL_SLUG', 'quadmenu-pro' );
		define( 'QUADMENU_PROMOTE_PREMIUM_SELL_NAME', 'QuadMenu PRO' );
		define( 'QUADMENU_PROMOTE_PREMIUM_INSTALL_URL', 'https://quadmenu.com/?utm_source=quadmenu_plugin&utm_medium=dashboard_notice&utm_campaign=premium_upgrade&utm_content=premium_install_button' );
		define( 'QUADMENU_PROMOTE_PREMIUM_SELL_URL', 'https://quadmenu.com/?utm_source=quadmenu_plugin&utm_medium=dashboard_notice&utm_campaign=premium_upgrade&utm_content=premium_link' );
		/**
		 * Notice cross sell 1
		 */
		define( 'QUADMENU_PROMOTE_CROSS_INSTALL_1_SLUG', 'wp-whatsapp-chat' );
		define( 'QUADMENU_PROMOTE_CROSS_INSTALL_1_NAME', 'Social Chat' );
		define(
			'QUADMENU_PROMOTE_CROSS_INSTALL_1_TITLE',
			wp_kses(
				sprintf(
					'<h3 style="margin:0">%s</h3>',
					esc_html__( 'Turn more visitors into customers.', 'quadmenu' )
				),
				array(
					'h3' => array(
						'style' => array()
					)
				)
			)
		);
		define( 'QUADMENU_PROMOTE_CROSS_INSTALL_1_DESCRIPTION', esc_html__( 'Social Chat allows your users to start a conversation from your website directly to your WhatsApp phone number with one click.', 'quadmenu' ) );
		define( 'QUADMENU_PROMOTE_CROSS_INSTALL_1_URL', 'https://quadlayers.com/products/whatsapp-chat/?utm_source=quadmenu_plugin&utm_medium=dashboard_notice&utm_campaign=cross_sell&utm_content=social_chat_link' );
		define( 'QUADMENU_PROMOTE_CROSS_INSTALL_1_LOGO_SRC', plugins_url( '/assets/backend/img/wp-whatsapp-chat.jpeg', QUADMENU_PLUGIN_FILE ) );
		/**
		 * Notice cross sell 2
		 */
		define( 'QUADMENU_PROMOTE_CROSS_INSTALL_2_SLUG', 'insta-gallery' );
		define( 'QUADMENU_PROMOTE_CROSS_INSTALL_2_NAME', 'Social Feed Gallery' );
		define(
			'QUADMENU_PROMOTE_CROSS_INSTALL_2_TITLE',
			wp_kses(
				sprintf(
					'<h3 style="margin:0">%s</h3>',
					esc_html__( 'Display Instagram feeds beautifully.', 'quadmenu' )
				),
				array(
					'h3' => array(
						'style' => array()
					)
				)
			)
		);
		define( 'QUADMENU_PROMOTE_CROSS_INSTALL_2_DESCRIPTION', esc_html__( 'Display Instagram photos from any account with responsive galleries, custom layouts, and an engaging lightbox popup.', 'quadmenu' ) );
		define( 'QUADMENU_PROMOTE_CROSS_INSTALL_2_URL', 'https://quadlayers.com/products/instagram-feed-gallery/?utm_source=quadmenu_plugin&utm_medium=dashboard_notice&utm_campaign=cross_sell&utm_content=instagram_feed_link' );
		define( 'QUADMENU_PROMOTE_CROSS_INSTALL_2_LOGO_SRC', plugins_url( '/assets/backend/img/insta-gallery.jpg', QUADMENU_PLUGIN_FILE ) );
		new \QuadLayers\WP_Notice_Plugin_Promote\Load(
			QUADMENU_PLUGIN_FILE,
			array(
				array(
					'type'               => 'ranking',
					'notice_delay'       => 0,
					'notice_logo'        => QUADMENU_PROMOTE_LOGO_SRC,
					'notice_title'       => wp_kses(
						sprintf(
							'<h3 style="margin:0">%s</h3>',
							esc_html__( 'Enjoying QuadMenu?', 'quadmenu' )
						),
						array(
							'h3' => array(
								'style' => array()
							)
						)
					),
					'notice_description' => esc_html__( 'A quick 5-star review helps us keep improving the plugin and supporting users like you. It only takes 2 seconds — thank you!', 'quadmenu' ),
					'notice_link'        => QUADMENU_PROMOTE_REVIEW_URL,
					'notice_more_link'   => 'https://quadmenu.com/account/support/?utm_source=quadmenu_plugin&utm_medium=dashboard_notice&utm_campaign=support&utm_content=report_bug_button',
					'notice_more_label'  => esc_html__(
						'Report a bug',
						'quadmenu'
					),
				),
				array(
					'plugin_slug'        => QUADMENU_PROMOTE_PREMIUM_SELL_SLUG,
					'plugin_install_link'   => QUADMENU_PROMOTE_PREMIUM_INSTALL_URL,
					'plugin_install_label'  => esc_html__(
						'Purchase Now',
						'quadmenu'
					),
					'notice_delay'       => WEEK_IN_SECONDS,
					'notice_logo'        => QUADMENU_PROMOTE_LOGO_SRC,
					'notice_title'       => wp_kses(
						sprintf(
							'<h3 style="margin:0">%s</h3>',
							esc_html__( 'Save 20% today!', 'quadmenu' )
						),
						array(
							'h3' => array(
								'style' => array()
							)
						)
					),
					'notice_description' => sprintf(
						esc_html__(
							'Today we have a special gift for you. Use the coupon code %1$s within the next 48 hours to receive a %2$s discount on the premium version of the %3$s plugin.',
							'quadmenu'
						),
						'ADMINPANEL20%',
						'20%',
						QUADMENU_PROMOTE_PREMIUM_SELL_NAME
					),
					'notice_more_link'   => QUADMENU_PROMOTE_PREMIUM_SELL_URL,
				),
				array(
					'plugin_slug'        => QUADMENU_PROMOTE_CROSS_INSTALL_1_SLUG,
					'notice_delay'       => MONTH_IN_SECONDS * 3,
					'notice_logo'        => QUADMENU_PROMOTE_CROSS_INSTALL_1_LOGO_SRC,
					'notice_title'       => QUADMENU_PROMOTE_CROSS_INSTALL_1_TITLE,
					'notice_description' => QUADMENU_PROMOTE_CROSS_INSTALL_1_DESCRIPTION,
					'notice_more_link'   => QUADMENU_PROMOTE_CROSS_INSTALL_1_URL
				),
				array(
					'plugin_slug'        => QUADMENU_PROMOTE_CROSS_INSTALL_2_SLUG,
					'notice_delay'       => MONTH_IN_SECONDS * 6,
					'notice_logo'        => QUADMENU_PROMOTE_CROSS_INSTALL_2_LOGO_SRC,
					'notice_title'       => QUADMENU_PROMOTE_CROSS_INSTALL_2_TITLE,
					'notice_description' => QUADMENU_PROMOTE_CROSS_INSTALL_2_DESCRIPTION,
					'notice_more_link'   => QUADMENU_PROMOTE_CROSS_INSTALL_2_URL
				),
			)
		);
	});
}

```
