bainternet / Tax-Meta-Class

A class for creating WordPress taxonomies custom fields
http://en.bainternet.info/2012/wordpress-taxonomies-extra-fields-the-easy-way
GNU General Public License v3.0
406 stars 111 forks source link

Fixed a bug with delete_term_meta API (meta name was required) #125

Open fembuelita opened 8 years ago

fembuelita commented 8 years ago

Simple iterate over each field to delete each term individually.

ocholabs commented 8 years ago

Hi, if you do this fix you'll get php warnings as in delete_term_meta( $term_id, $field ); $field is an array and you should pass a string I changed it to delete_term_meta( $term_id, $field['id']); And got no more warnings now.