Skip to content

Instantly share code, notes, and snippets.

@BenMcD0nald
Last active May 8, 2021 11:16
Show Gist options
  • Save BenMcD0nald/30d503ad28a8305bc2d883817ba89ae3 to your computer and use it in GitHub Desktop.
Save BenMcD0nald/30d503ad28a8305bc2d883817ba89ae3 to your computer and use it in GitHub Desktop.
add_action( 'post_tag_add_form_fields', 'mk_add_term_fields' );
function mk_add_term_fields( $taxonomy ) {
echo '<div class="form-field">
<label for="term-field-key">Text Field</label>
<input type="text" name="term-field-key" id="term-field-key" />
<p>Field description may go here.</p>
</div>';
}
// post_tag/category/custom_tax_name - change in hook
//taxonomy fed through in function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment