Skip to content

Instantly share code, notes, and snippets.

@kellenmace
Created September 7, 2015 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kellenmace/4df298450ef8a664b3ee to your computer and use it in GitHub Desktop.
Save kellenmace/4df298450ef8a664b3ee to your computer and use it in GitHub Desktop.
<?php
function km_insert_taxonomy_terms_include_staff_on_page() {
if ( ! term_exists( 'executive_committee', 'include_staff_on_page' ) ) {
wp_insert_term( 'executive_committee', 'include_staff_on_page' );
}
if ( ! term_exists( 'our_people', 'include_staff_on_page' ) ) {
wp_insert_term( 'our_people', 'include_staff_on_page' );
}
if ( ! term_exists( 'our_stories', 'include_staff_on_page' ) ) {
wp_insert_term( 'our_stories', 'include_staff_on_page' );
}
}
add_action( 'init', 'km_insert_taxonomy_terms_include_staff_on_page' ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment