Clanbite Since 1.6.0
constraint_for( array $data ): stringThe Clanbite versions a plugin says it works with.
A plugin that declares Requires Clanbite uses that. A first-party add-on released before the header existed (it uses the Clanbite update server in its Update URI) is assumed to be built for Clanbite 1.x, which is true of every add-on that predates the header. Anything else without the header is not judged.
public static
Class: Kernowdev\Clanbite\Updates\Compat_Monitor
Parameters
$data(array<string, mixed>) RequiredPlugin data from
get_plugins().
Returns
string Constraint, or an empty string when the plugin makes no claim.
Defined in inc/updates/class-compat-monitor.php
Changelog
| Version | Description |
|---|---|
| 1.6.0 | Introduced. |