Unlike the other taxonomies, you cannot use wp_inset_term()
to add terms to the post_format
taxonomy as you cannot add new terms to this taxonomy.
You need to add the terms for the post_format
via add_theme_support()
, something like
add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );