UpdateCounts final class
Minn\Runtime\UpdateCounts · public/minn/src/Minn/Runtime/UpdateCounts.php · 67 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
| static | data(): mixed# | The updates waiting, counted for what the user may update, with their title (wp_get_update_data), as wp_get_update_data leaves them. |
| static | translations(): array# | The translation updates waiting (wp_get_translation_updates): none, as the engine fetches no language packs on its own. @return list<object> |
| static | core(mixed $options = array ( )): mixed# | The core releases offered (get_core_updates), each marked not dismissed; false when the offer holds none. |
| static | forCurrentUser(): 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>} |
Nothing matches.