apply_filters( 'clanbite_validate_installed_extensions', array<int, string> $new, array<int, string> $requested, array<string, \Kernowdev\Clanbite\Extensions\Skeleton> $available )Filters the extension slugs that will be saved after the admin Extensions screen validates the request.
Filter PHP
Parameters
$new(array<int, string>)Validated slugs that will be stored.
$requested(array<int, string>)Slugs the admin requested.
$available(array<string, \Kernowdev\Clanbite\Extensions\Skeleton>)Registered extensions keyed by slug.
Example
add_filter( 'clanbite_validate_installed_extensions', function ( $new, $requested, $available ) {
// Change $new here.
return $new;
}, 10, 3 );Defined in inc/admin/class-admin-rest.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Updated. |