: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
type ContentEmbedInfoResponse = {
// Empty if user doesn't have permissions or plugin already activated
activateAjaxUrl?: 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');
}).then<ContentEmbedInfoResponse>(res => res.json());
export function startActivation(requestUrl: string) {
return fetch(requestUrl, {
}).then<ContentEmbedInfoResponse>(res => res.json());