WC_Admin_API_Keys::notices()public staticWC 1.0

Notices.

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

Хуков нет.

Возвращает

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

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

$result = WC_Admin_API_Keys::notices();

Код WC_Admin_API_Keys::notices() 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 ) );
	}
}