Clanbite General Since 1.6.0

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

VersionDescription
1.6.0Introduced.