quick_edit_custom_box
Action HookDescription
Fires once for each column in Quick Edit mode.Hook Information
File Location |
wp-admin/includes/class-wp-posts-list-table.php
View on GitHub
|
Hook Type | Action |
Line Number | 2084 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$column_name
|
Name of the column to edit. |
string
|
$post_type
|
The post type slug, or current screen name if this is a taxonomy list table. |
string
|
$taxonomy
|
The taxonomy name, if any. |
Usage Examples
Basic Usage
<?php
// Hook into quick_edit_custom_box
add_action('quick_edit_custom_box', 'my_custom_function', 10, 3);
function my_custom_function($column_name, $post_type, $taxonomy) {
// Your custom code here
}
Source Code Context
wp-admin/includes/class-wp-posts-list-table.php:2084
- How this hook is used in WordPress core
<?php
2079 *
2080 * @param string $column_name Name of the column to edit.
2081 * @param string $post_type The post type slug, or current screen name if this is a taxonomy list table.
2082 * @param string $taxonomy The taxonomy name, if any.
2083 */
2084 do_action( 'quick_edit_custom_box', $column_name, $screen->post_type, '' );
2085 }
2086 }
2087 ?>
2088
2089 <div class="submit inline-edit-save">
PHP Documentation
<?php
/**
* Fires once for each column in Quick Edit mode.
*
* @since 2.7.0
*
* @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.
*/
Quick Info
- Hook Type: Action
- Parameters: 3
- File: wp-admin/includes/class-wp-posts-list-table.php
Related Hooks
Related hooks will be displayed here in future updates.