Automator_Notifications::update()
Update notification data from feed.
Contents
Parameters Parameters
- $option
-
(Required) (Optional) Added @since 7.13.2
Source Source
File: src/core/admin/notifications/notifications.php
public function update() { $feed = $this->fetch_feed(); $option = $this->get_option(); update_option( $this->option_name, array( 'update' => time(), 'feed' => $feed, 'events' => $option['events'], 'dismissed' => array_slice( $option['dismissed'], 0, 30 ), // Limit dismissed notifications to last 30. ), false ); }
Expand full source code Collapse full source code View on Github
Changelog Changelog
Version | Description |
---|---|
{VERSION} | Introduced. |