Created
September 7, 2015 02:05
-
-
Save kellenmace/4df298450ef8a664b3ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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