Hot answers tagged


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


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