updates.php
Updates.
Allows the admin to enter their unique activation code. The plugin extensions use this activation code to retrieve updates information from the dashed-slug.net server.
Additionally, displays extra information under the main plugin in the plugin list. (Link to settings, link to release notes.)
Tags
Table of Contents
- tab_updates_cb() : mixed
- get_update_info_for_dashed_slug_extension() : object|null
- Get update info for dashed-slug extension.
Functions
tab_updates_cb()
tab_updates_cb(mixed $arg) : mixed
Parameters
- $arg : mixed
Return values
mixed —get_update_info_for_dashed_slug_extension()
Get update info for dashed-slug extension.
get_update_info_for_dashed_slug_extension(string $plugin_slug) : object|null
Retrieves update information for an extension specified by slug. Extensions to this plugin will use this function to check for available updates to these extensions.
The update information is cached on the object cache for 30 minutes to reduce load on the updates server. This means that you will see updates to the extensions after a maximum delay of 30 minutes.
Parameters
- $plugin_slug : string
-
The extension slug, suchs as "wallets-faucet", "wallets-exchange", etc.
Return values
object|null —The update information or null if not retrieved.