All together, this gives a hack like the following to add some code. Finding out where you can handle the form submission is (currently) left as a exercise to the reader.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | // Add a dummy column for the `posts` post type add_filter('manage_posts_columns', 'add_dummy_column', 10, 2); function add_dummy_column($posts_columns, $post_type) { $posts_columns['dummy'] = 'Dummy column'; return $posts_columns; } // But remove it again on the edit screen (other screens to?) add_filter('manage_edit-post_columns', 'remove_dummy_column'); function remove_dummy_column($posts_columns) { unset($posts_columns['dummy']); return $posts_columns; } // Add our text to the quick edit box add_action('quick_edit_custom_box', 'on_quick_edit_custom_box', 10, 2); function on_quick_edit_custom_box($column_name, $post_type) { if ('dummy' == $column_name) { echo 'Extra content in the quick edit box'; } } // Add our text to the bulk edit box add_action('bulk_edit_custom_box', 'on_bulk_edit_custom_box', 10, 2); function on_bulk_edit_custom_box($column_name, $post_type) { if ('dummy' == $column_name) { echo 'Extra content in the bulk edit box'; } } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.