Skip to content

Commit

Permalink
Added an MBID field to the Quick Edit screen on Artist taxonomy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Terry committed Aug 13, 2017
1 parent 781b54b commit 8d28f8a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/admin/artist.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,19 @@ function dz_edited_artist_save( $term_id, $tag_id ) {
}
}
add_action( 'edited_artist', 'dz_edited_artist_save', 10, 2 );

function dz_mbz_artist_mbid_quick_edit( $column, $screen, $tax ) {
if ( 'edit-tags' === $screen && 'artist' === $tax && 'musicbrainz' === $column ) { ?>
<fieldset>
<div class="inline-edit-col">
<label>
<span class="title">MBID</span>
<span class="input-text-wrap">
<input type="text" name="mbid" class="ptitle" value="" />
</span>
</label>
</div>
</fieldset>
<?php }
}
add_action( 'quick_edit_custom_box', 'dz_mbz_artist_mbid_quick_edit', 10, 3 );

0 comments on commit 8d28f8a

Please sign in to comment.