# leadin/11.3.65/scripts/utils/contentEmbedInstaller.ts

HubSpot All-In-One Marketing – Forms, Popups, Live Chat, version 11.3.65. 28 lines.

- Page: https://pluginprobe.com/plugins/leadin/11.3.65/code/scripts/utils/contentEmbedInstaller.ts
- Raw: https://pluginprobe.com/plugins/leadin/11.3.65/raw/scripts/utils/contentEmbedInstaller.ts
- Modified: 2026-07-10T16:14:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/leadin/11.3.65/code/scripts/utils/contentEmbedInstaller.ts#L10-L20`.

```typescript
type ContentEmbedInfoResponse = {
  success: boolean;
  data?: {
    // Empty if user doesn't have permissions or plugin already activated
    activateAjaxUrl?: string;
    message: string;
  };
};

export function startInstall(nonce: string) {
  const formData = new FormData();
  const ajaxUrl = (window as any).ajaxurl;
  formData.append('_wpnonce', nonce);
  formData.append('action', 'content_embed_install');
  return fetch(ajaxUrl, {
    method: 'POST',
    body: formData,
    keepalive: true,
  }).then<ContentEmbedInfoResponse>(res => res.json());
}

export function startActivation(requestUrl: string) {
  return fetch(requestUrl, {
    method: 'POST',
    keepalive: true,
  }).then<ContentEmbedInfoResponse>(res => res.json());
}

```
