API / Minn\Runtime / UpdateCounts

UpdateCounts final class

Minn\Runtime\UpdateCounts · public/minn/src/Minn/Runtime/UpdateCounts.php · 31 lines

The updates waiting, as wp_get_update_data counts them for the user (probe admin-bar): plugins and themes from their update transients, WordPress itself unless it is current, translations; each only for a user who may update it. WordPress counts its own update only where wp-admin's update functions are loaded; the engine always has them, so it counts it everywhere.

Public

staticforCurrentUser(): array#

The counts and their title (before the wp_get_update_data filter), and the titles one by one.

@return array{0: array{counts: array<string, int>, title: string}, 1: array<string, string>}