quick_edit_custom_box
Fires once for each column in Quick Edit mode.
Usage
add_action( 'quick_edit_custom_box', 'wp_kama_quick_edit_custom_box_action', 10, 3 ); /** * Function for `quick_edit_custom_box` action-hook. * * @param string $column_name Name of the column to edit. * @param string $post_type The post type slug, or current screen name if this is a taxonomy list table. * @param string $taxonomy The taxonomy name, if any. * * @return void */ function wp_kama_quick_edit_custom_box_action( $column_name, $post_type, $taxonomy ){ // action... }
- $column_name(string)
- Name of the column to edit.
- $post_type(string)
- The post type slug, or current screen name if this is a taxonomy list table.
- $taxonomy(string)
- The taxonomy name, if any.
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
quick_edit_custom_box
quick_edit_custom_box
wp-admin/includes/class-wp-posts-list-table.php 2077
do_action( 'quick_edit_custom_box', $column_name, $screen->post_type, '' );
wp-admin/includes/class-wp-terms-list-table.php 724
do_action( 'quick_edit_custom_box', $column_name, 'edit-tags', $this->screen->taxonomy );