WordPress at Your Fingertips
function is not described

WC_Admin_API_Keys::notices() public WC 1.0

Notices.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_API_Keys::notices();

Code of WC_Admin_API_Keys::notices() WC 5.9.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 ) );
	}
}