WC_Admin_Notices::secure_connection_notice()public staticWC 1.0

Notice about secure connection.

Method of the class: WC_Admin_Notices{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_Notices::secure_connection_notice();

WC_Admin_Notices::secure_connection_notice() code WC 8.9.0

public static function secure_connection_notice() {
	if ( self::is_ssl() || get_user_meta( get_current_user_id(), 'dismissed_no_secure_connection_notice', true ) ) {
		return;
	}

	include __DIR__ . '/views/html-notice-secure-connection.php';
}