Last active
August 29, 2015 14:20
-
-
Save bradpotter/42180fac48ae29d86e3e to your computer and use it in GitHub Desktop.
Filter term meta
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
add_filter( 'genesis_term_meta_defaults', 'add_term_meta_defaults' ); | |
function add_term_meta_defaults( $term_meta ) { | |
$more_term_meta = array( | |
'my_new_default' => '', | |
); | |
$term_meta = array_merge( $more_term_meta, $term_meta ); | |
return $term_meta; | |
} | |
add_filter( 'genesis_term_meta_defaults', 'add_term_meta_defaults' ); | |
function add_term_meta_defaults( $term_meta ) { | |
$term_meta['first_new_default'] = '1'; | |
$term_meta['second_new_default'] = '2'; | |
return $term_meta; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment