Taxonomy Quick Edit field – Display custom field
/**
* Display markup or template for custom field
*/
function gwp_quick_edit_category_field( $column_name, $screen ) {
// If we're not iterating over our custom column, then skip
if ( $screen != 'edition' && $column_name != 'first-appeared' ) {
return false;
}
?>
<fieldset>
<div id="gwp-first-appeared" class="inline-edit-col">
<label>
<span class="title"><?php _e( 'First Appeared', 'generatewp' ); ?></span>
<span class="input-text-wrap"><input type="text" name="<?php echo esc_attr( $column_name ); ?>" class="ptitle" value=""></span>
</label>
</div>
</fieldset>
<?php
}
add_action( 'quick_edit_custom_box', 'gwp_quick_edit_category_field', 10, 2 );