Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.