Skip to content

updatePluginHeaderCompatibility

updatePluginHeaderCompatibility(source, policy, options?): string

Defined in: wp-typia-project-tools/src/runtime/templates/scaffold-compatibility.ts:362

Patch a generated plugin bootstrap header without lowering custom floors.

Preserves the original header line endings while replacing empty version strings with policy values. Malformed user-authored values are reported through options.onWarning; without a warning handler they throw instead of falling back silently.

string

ScaffoldCompatibilityPolicy

UpdatePluginHeaderCompatibilityOptions = {}

string