AY Term Meta

Plugin Banner

AY Term Meta

by Erwan Guillon

Download
Description

Activate the plugin and add some code to your functions.php

Basic function :

  • AyTermMeta::addMeta($term, $name, $label, $type = ‘input’, $description = ”, $options = array()) {} Generate all meta management in WordPress Admin

Advanced functions :

You can use term_meta functions similar to post_meta function to add / update / get / delete metas

  • function add_term_meta( $term_id, $meta_key, $meta_value, $unique = false ) {}
  • function update_term_meta( $term_id, $meta_key, $meta_value, $prev_value = ” ) {}
  • function get_term_meta( $term_id, $key = ”, $single = false ) {}
  • function delete_term_meta( $term_id, $meta_key, $meta_value = ” ) {}

Download the plugin and put it in /wp-content/plugins/. Then activate it and add some code in your theme.

  1. The add screen

    The add screen

  2. The edit screen

    The edit screen

Back to top