Filter since v2.4.0
fswa_import_extra_root_keys
Whitelist additional top-level keys so a Build import document passes strict validation.
$
/ Signature
apply_filters( 'fswa_import_extra_root_keys', $keys )
/ When it fires
The importer validates every document against a strict schema and rejects unknown root keys. Return extra key names here when a companion feature attaches its own top-level block on export and needs it tolerated on import.
/ Parameters
| Name | In | Type | Req | Description |
|---|---|---|---|---|
| $keys | param | string[] | yes | Extra root-level keys to tolerate (defaults to an empty array). |
/ Returns
string[] The list of extra root keys the importer should accept instead of rejecting the document./ Examples
Tolerate a custom provenance block on import
add_filter( 'fswa_import_extra_root_keys', function ( $keys ) { $keys[] = 'exported_from'; return $keys; } );
/ Related
Ready Your next automation is
Your next automation is
one sentence away.
$ wp plugin install flowsystems-webhook-actions --activate