apply_filters( 'clanbite_legacy_addon_constraint', string $constraint, array<string, mixed> $data )Filters the Clanbite versions assumed for a first-party add-on that has no Requires Clanbite header.
Filter PHP
Parameters
$constraint(string)Default
^1.0.0.$data(array<string, mixed>)Plugin data.
Example
add_filter( 'clanbite_legacy_addon_constraint', function ( $constraint, $data ) {
// Change $constraint here.
return $constraint;
}, 10, 2 );Defined in inc/updates/class-compat-monitor.php
Changelog
| Version | Description |
|---|---|
| 1.6.0 | Introduced. |