Overview
The Edit API provides resources to create new edit fields for both single and multi item editing contexts. A separate resource lets you handle item sorting without adding unnecessary complexity to your field registration functions.
Creating fields
Display titles, text fields, drop downs, images, galleries, and date pickers. Validate values to ensure the correct data type is provided before an update is requested.
Saving field data
Sanitization and meta field updates are handled automatically by Index. Or use the custom edit field type to manually save data for an individual field with a provided resource.
Sorting fields
Control the sort order of all fields. This resource separates the sort order and registration logic. All registered fields are included before this resource is fired.
Editing single items
Register fields that only display when a single item is being edited. Each field returns its type and its current value. Fields are registered in PHP and sanitization is handled by Index.
Editing multiple items
Register fields that only display when multiple items are being edited. Each field returns only its type. Fields are registered in PHP and sanitization is handled by Index.