Clanbite Since 1.6.0

class Installer

The "Available add-ons" list: asks the update server which extensions this site may install (all of them for an activated licence, only the free ones without a licence), and installs one through WordPress' normal plugin installer.

Nothing here trusts the browser: the extension must be in the server's own answer, the download is the same single-use, checksum- and signature-verified package used for updates, and the unpacked plugin must declare a compatible Requires Clanbite before WordPress copies it into place. Only users who may install plugins can use it, and it is unavailable where WordPress forbids file changes (DISALLOW_FILE_MODS).

class final

Full name
Kernowdev\Clanbite\Updates\Installer

Methods

  • activate() Activate an installed add-on (the WordPress plugin, not the Clanbite extension switch).
  • can_install() Whether this user may install add-ons from the Licence tab on this site.
  • catalog() The server's catalog joined with what is installed on this site.
  • install() Install an add-on the server offers this site.
  • installing() Slug of the add-on being installed, or an empty string.

Defined in inc/updates/class-installer.php

Changelog

VersionDescription
1.6.0Introduced.