gdtt_term_attach_image

gdtt_term_attach_image($taxonomy, $term, $image_id)

  • $taxonomy: name of the taxonomy term belongs to.
  • $term: term id or full term object.
  • $image_id: id of the image to use.

Attach image from WordPress media library to a term in a taxonomy.

Comments

Leave a Reply