How do you add a custom field to the comments "Quick Edit" screen?
The code below only shows on the posts quick edit screen:
function tips_quick_edit_fields( $column, $post_type ) {
?>
<fieldset>
<div class="inline-edit-col">
<label>
<input type="checkbox" name="featured"> Is this a tip?
</label>
</div>
</fieldset>
<?php
}
add_action( 'quick_edit_custom_box', 'tips_quick_edit_fields', 10, 2 );
I can't find information anywhere on how to make it appear on the comments "Quick Edit" screen though.
Is it even possible?
wp_comment_reply
filter to add your custom field to the inline comment editor form, but the Quick Edit is a JS feature, so I'd use PHP+JS to add the custom field - i.e. using another hook to echo the HTML in your function. After all, you'd still need to use JS to make the rest work, e.g. to auto-check the field after saving the edited comment.