-
Notifications
You must be signed in to change notification settings - Fork 1
Quick Edit
Pedro de Carvalho edited this page Jul 29, 2026
·
1 revision
The quick_edit feature allows you to add custom fields to the Quick Edit screen of your Custom Post Type entries in the administration list.
When enabled, the framework will:
- Add your custom fields to the Quick Edit form
- Populate the fields with the current values when editing
- Save the updated values when the Quick Edit form is submitted
The quick_edit feature accepts an array where each key is a meta key and values define the field display. Each field can have:
-
title- Label displayed in the Quick Edit form (defaults to the capitalized meta key) -
column_name- The admin column name to read the value from (defaults to the meta key)
You must also define a corresponding admin_cols entry so the value is available in the list table.
return [
'active' => true,
'type' => 'cpt',
'name' => 'book',
'features' => [
'quick_edit' => [
'publisher' => [
'title' => __( 'Publisher', 'my-plugin' ),
],
],
'admin_cols' => [
'publisher' => [
'title' => __( 'Publisher', 'my-plugin' ),
'meta_key' => 'publisher',
],
],
],
];In this example, a "Publisher" field will appear in the Quick Edit form and be saved as post meta with the key publisher.