[How to] Add New Tags or Taxonomies to WordPress using PHP

function wpassist_insert_terms(){ $ahc = get_term_by(‘name’, ‘American Heroes Channel’, ‘post_tag’); if( !$ahc ){ wp_insert_term( ‘American Heroes Channel’, ‘post_tag’); wp_insert_term( ‘Discovery Channel’, ‘post_tag’); wp_insert_term( ‘Animal Planet’, ‘post_tag’); wp_insert_term( ‘USA Network’, ‘post_tag’); wp_insert_term( ‘Amazon’, ‘post_tag’); wp_insert_term( ‘TNT’, ‘post_tag’); } } add_action( ‘wp_head’, ‘wpassist_insert_terms’ );

Read more [How to] Add New Tags or Taxonomies to WordPress using PHP