WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

CouponPageMoved::can_be_added() public WC 1.0

Checks if a note can and should be added.

{} It's a method of the class: CouponPageMoved{}

No Hooks.

Return

true|false. Nothing.

Usage

$result = CouponPageMoved::can_be_added();

Code of CouponPageMoved::can_be_added() WC 5.2.2

<?php
public static function can_be_added() {
	if ( ! wc_coupons_enabled() ) {
		return false;
	}

	// Don't add the notice if it's been hidden by the user before.
	if ( self::has_dismissed_note() ) {
		return false;
	}

	// If we already have a notice, don't add a new one.
	if ( self::has_unactioned_note() ) {
		return false;
	}

	// If new navigation feature is enabled.
	if ( Loader::is_feature_enabled( 'navigation' ) ) {
		return false;
	}

	return isset( $_GET[ self::$query_key ] ) && (bool) $_GET[ self::$query_key ]; // phpcs:ignore WordPress.Security.NonceVerification
}