Import Form is a WordPress ability from Ninja Forms — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Import Form

Write
Ninja Forms Forms ninjaforms/import-form

Import a form from Ninja Forms' .nff export file content.

Requires the Ninja Forms plugin on WordPress 6.9+ for the Abilities API (all 32 abilities are registered only when the wp_register_ability() function exists, via NF_Abilities_Integration::load_abilities_api() running on plugins_loaded). Every ability is gated by the same ninja_forms_ability_can_manage_forms() permission callback, requiring the caller to hold WordPress's manage_options capability or Ninja Forms' own nf_edit_forms capability.

What it does

This ability recreates a form from the JSON content of a Ninja Forms .nff export file — settings, fields, and actions included — returning the new form's form_id and title. It pairs with ninjaforms/export-form-definition to let an AI assistant move a form between sites, or restore/duplicate a form from a previously exported backup.

See it in action

You ask your AI assistant

"Import this .nff file content as a new form."

Inputs

Name Type Required Description
file_content string Yes JSON content of the .nff export file.
decode_utf8 boolean No Whether to decode UTF-8. Defaults to true.

Returns

An object with a 'success' boolean, a 'message', the new 'form_id', and the imported 'form_title'.

Permission

The current user must have WordPress's 'manage_options' capability or Ninja Forms' own 'nf_edit_forms' capability (checked via the shared ninja_forms_ability_can_manage_forms() permission callback).

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.