Customize taxonomy labels
Rent Fetch provides several general-purpose category structures (taxonomies), and it’s quite possible to change their labels to match your actual needs (to understand what a taxonomy is, think of “shirt categories” vs. “colors” or “sizes,” for example. Each of these is a way to group together T-Shirts, and they’re best used in combination, because no one wants a category structure where an individual category is “Large red t-shirts with sequins” because mixing types is quickly untenable).
About our taxonomies
We give you several default taxonomies out of the box to work with, as you might choose to group your properties or floorplans in a myriad different ways that we won’t be able to anticipate.
So, you may wish to change our placeholder labels. If the meaningful distinction for your property group, for example, is not “Property Category” but rather “Student/Non-student housing,” you might use the Property Categories as a built-in way to categorize them as student vs. non-student, but then update the label so that the properties search nomenclature reflects your preference.
The identifiers for all of the default taxonomies are as follows (these are used in the function below):
Floor plan taxonomies
- floorplancategory (default label: Floor plan categories)
- floorplantype (default label: Floor plan types)
Property taxonomy labels
- amenities (default label: Amenities)
- propertytypes (default label: Property types)
- propertycategories (default label: Property categories)
To change the label (and similar settings), use the example below to add a similar function:
// Change the label of the 'propertytypes' taxonomy
function your_prefix_change_property_types_label() {
global $wp_taxonomies;
$labels = $wp_taxonomies['propertytypes']->labels;
$labels->name = 'Thingies';
$labels->singular_name = 'Thingie';
$labels->add_new = 'Add Thingie';
$labels->add_new_item = 'Add Thingie';
$labels->edit_item = 'Edit Thingie';
$labels->new_item = 'Thingie';
$labels->view_item = 'View Thingie';
$labels->search_items = 'Search Thingies';
$labels->not_found = 'No Thingies found';
$labels->not_found_in_trash = 'No Thingies found in Trash';
$labels->all_items = 'All Thingies';
$labels->menu_name = 'Thingie';
$labels->name_admin_bar = 'Thingie';
}
add_action( 'wp_loaded', 'your_prefix_change_property_types_label' );