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, loop through an array for real
if ( 'old' === $value ) {
return $terms['old'];
}
return $value;
} );
Related Posts:
- Post filter with multiple checkbox taxonomy terms
- get_terms return errors
- How to exclude certain widget from showing up on home/front page? [duplicate]
- What hooks/filters are there to alter selected terms on post save?
- Fast way to add countries as a custom taxonomy term?
- Customizing the default logout page of WordPress
- Get Custom Taxonomy Terms by Date
- How to append custom text to the output of ‘categories widget’?
- How to make WordPress search page use a relative path
- Display all subterms of a custom taxonomy filtered by parent terms
- How to append the excerpt to the content in the single post page?
- issue with saving custom metaboxes fields
- Custom terms in custom category taxonomy
- How can I edit post data before it is saved?
- How to add a new product type on woocommerce product types? [closed]
- Modify existing plugin function using filter (without modifying the plugin directly)
- WordPress hook before inserting post into database
- Making Custom Fields Standard in the Admin UI
- Add custom html to last sub-menu item
- Limit Media Library to Given Folder
- How can I select a primary category?
- Custom taxonomy: same terms, but for different years
- Why isn’t is_home() working correctly?
- What is the proper way to apply the login_form_bottom filter?
- How to filter get_avatar?
- Integrate post tags in Post Edit page with qTranslate
- Any Hook Called When Post Becomes Published?
- When using the block.getSaveElement hook can you output different markup based on whether or not you are in the edit view or the live page view?
- How-to inspect filter-able $vars?
- How to show only Standard Format post in my custom taxonomy page -wordpress 3.8.1
- Failed to invoke other hook from the init hook
- Admin search post meta
- Redirect to another page using contact form 7? [closed]
- Gutenberg Block – Post Featured Image Filter Hook
- How to get every custom taxonomy names and urls?
- Combine two conditions in one statement syntax [closed]
- Display specific Taxonomy Term from Custom Post Type
- Semi complicated custom taxonomy question
- Get wordpress taxonomy slug name(s) to use as div class
- Get users based on month ACF datepicker field
- How do I list custom taxonomy terms with the links?
- Dynamically Filtering Posts by Data Points – Any Pointers?
- How to load a mycred hook from a plugin?
- WooCommer Product Category Loop – How to change the display order of the rating and price?
- How to Add Additional Search Button?
- Echo the Last Child Taxonomy only (not parents)?
- How to query term_id of a Custom Taxonomy by name
- Custom Register Link on Backend Form
- Use wp_list_categories to list parent categories from actual term
- Include get_term_link inside search
- Customize Widget Navigation
- Hook before user is created and make some custom validation
- How to show parent taxonomy using get_the_terms?
- wp_insert_post custom taxonomy multiple Category not added
- query variables for custom taxonomies
- Adding overlay search to wordpress using add action/filter
- If Term Name Exists, Append a Unique ID to Slug
- wp_set_object_terms creates taxonomies but does not add custom posts to it
- How can Use custom input field in functions.php page?
- customer specific email attachment
- My list of terms of custom taxonomy displays 7 times
- Save_post – Warning: Cannot modify header information
- How to get the full product name by ignoring custom modification on it
- Display Custom Taxonomy Name As A Shortcode
- Taxonomy template is not reading
- Moving Quantity after product description
- URL issue after setting up Custom Structure in Settings >> Permalinks
- How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected
- Display post after choice two taxonomy terms
- Wrap WordPress Login Form in custom Div
- Customize plugin templates
- taxonomy_edit_form_fields output after term fields
- Combine Categories & Custom Taxonomy
- Check get_post value after wp-admin login
- Custom dropdown search form that allows users to select option B based from Option 1
- Show different pages on site depending on user choice
- How to check which submission button was clicked?
- What is the earliest hook you can piggyback on to check terms/taxonomy for a collection view?
- Creating Action Hooks For Automatic File Inclusion
- Custom display for homepage, tag and author pages
- Taxonomy template by post type
- How to loop through 1 CPT with 2 Taxonomies
- Customizing the built-in Media Playlist
- Pre_Get_Posts order DESC not registering
- Apply `the_content’ filter to theme customisation live preview
- How to setup a taxonomy that can have only one post assigned to it?
- Make Terms Under Custom Taxonomy Use Specific Single.php Template
- Grouped custom taxonomy query
- Delete Term via edit-tags.php
- Create advanced portal website with sections – taxonomy usage?
- Custom Query for Taxonomy
- Adding a third custom taxonomies
- Add variable : 1 Week ago
- Particle.js not loading in WordPress Gutenberg
- How to Add Extra Text In WordPress Title Before Post Publish
- How to add filters to my site?
- I need to get all categories from a WP_Query
- Can’t change WordPress / WooCommerce attribute value order
- Taxonomy question how to add more data
- How to get a custom taxonomy slug in body classes