Hot answers tagged

3

Maybe try wp_insert_term once the plugin has been enabled: https://codex.wordpress.org/Function_Reference/wp_insert_term I.e. wp_insert_term( 'Male', // the term 'dog_sex', // the taxonomy array( 'slug' => 'male', ) );


2

The dynamic filter "term_{$field}" is probably what you're looking for, where the field is "name." One approach is to have an array of names and their pseudonyms, then do a check-and-return on them so they'll display the replacement. add_filter( 'term_name', function( $value ) { $terms = [ 'old' => 'new', ]; // basic example check, ...



Only top voted, non community-wiki answers of a minimum length are eligible