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.
Parameters
Section titled “Parameters”source
Section titled “source”string
policy
Section titled “policy”options?
Section titled “options?”UpdatePluginHeaderCompatibilityOptions = {}
Returns
Section titled “Returns”string