devowl-wp
    Preparing search index...
    • Get the anonymous localized script from the document as object and write it to the window object.

      Use it in combination with Assets.php#anonymous_localize_script or wpLocalizeScriptResources from @devowl-wp/deliver-anonymous-asset.

      Parameters

      • slug: string

      Returns any

      const options = getAnonymousLocalizedScript(process.env.slug);