WC_Admin_API_Keys::notices()public staticWC 1.0

Notices.

Method of the class: WC_Admin_API_Keys{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_API_Keys::notices();

WC_Admin_API_Keys::notices() code WC 8.7.0

public static function notices() {
	if ( isset( $_GET['revoked'] ) ) { // WPCS: input var okay, CSRF ok.
		$revoked = absint( $_GET['revoked'] ); // WPCS: input var okay, CSRF ok.

		/* translators: %d: count */
		WC_Admin_Settings::add_message( sprintf( _n( '%d API key permanently revoked.', '%d API keys permanently revoked.', $revoked, 'woocommerce' ), $revoked ) );
	}
}