WC_Admin_API_Keys::notices │ public static │ WC 1.0

Notices.

Метод класса: WC_Admin_API_Keys{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = WC_Admin_API_Keys::notices();

Код WC_Admin_API_Keys::notices() WC 11.3.0

public static function notices() {
	if ( isset( $_GET['revoked'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only routing; mutation helpers verify nonces and capabilities.
		$revoked = absint( $_GET['revoked'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only routing; mutation helpers verify nonces and capabilities.

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