This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Astra_Addon_License_Notice::get_notice_html()

Generate notice HTML content


Description


Return

(string) HTML for the notice


Source

File: admin/core/includes/class-astra-addon-license-notice.php

	private function get_notice_html() {
		$activate_license_url = admin_url( 'admin.php?page=astra&path=settings' );
		$learn_more_url       = 'https://wpastra.com/?utm_source=wp&utm_medium=dashboard&utm_campaign=license-activation';
		$logo_url             = ASTRA_THEME_URI . 'inc/assets/images/astra-logo.svg';

		return sprintf(
			'<div class="astra-addon-license-notice-content">
				<div class="astra-addon-license-notice-logo">
					<img src="%s" alt="Astra Logo" />
				</div>
				<div class="astra-addon-license-notice-body-wrapper">
					<div class="astra-addon-license-notice-header">
						<strong>%s</strong>
					</div>
					<div class="astra-addon-license-notice-body">
						<p>%s</p>
					</div>
					<div class="astra-addon-license-notice-actions">
						<a href="%s" class="button button-primary" style="margin-right: 10px;">%s</a>
						<a href="%s" target="_blank" rel="noopener noreferrer" class="button">%s</a>
					</div>
				</div>
			</div>',
			esc_url( $logo_url ),
			esc_html__( 'Your Astra Pro license isn\'t active', 'astra-addon' ),
			esc_html__( 'Please activate your license to enable premium features, automatic updates, and access to support.', 'astra-addon' ),
			esc_url( $activate_license_url ),
			esc_html__( 'Activate License', 'astra-addon' ),
			esc_url( $learn_more_url ),
			esc_html__( 'Learn More', 'astra-addon' )
		);
	}

Changelog

Changelog
Version Description
4.12.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.