Reorder Fields 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 →

Reorder Fields

Write
Ninja Forms Forms ninjaforms/reorder-fields

Change the display order of fields on a form.

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 reassigns the order position of fields on a form by accepting an object that maps each field_id to its new numeric order (for example {"69": 1, "70": 2}). It lets an AI assistant rearrange a form's field layout — moving a field up, pushing a new section header down — without the user having to drag and drop fields in the visual builder.

See it in action

You ask your AI assistant

"On form 12, move field 70 to the top of the form and push field 69 to second position."

Inputs

Name Type Required Description
form_id integer Yes Form ID containing the fields.
field_order object Yes Object mapping field_id to its new order position (e.g. {"69": 1, "70": 2}).

Returns

An object with a 'success' boolean, the 'form_id', a count of fields 'reordered', the resulting 'field_order' object, and a 'message'.

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.