In order to add a new taxonomy, you need to add this code to a child theme. Our theme pack comes with one, so you need to activate that first.
In functions.php add the following code:
add_action('init', 'wpestate_create_property_type_child_theme', 30);
if (!function_exists('wpestate_create_property_type_child_theme')):
function wpestate_create_property_type_child_theme(){
register_taxonomy('property_custom_category', array('estate_property'), array(
'labels' => array(
'name' => esc_html__('Categories Custom', 'wpresidence-core'),
'add_new_item' => esc_html__('Add New Property Category Custom', 'wpresidence-core'),
'new_item_name' => esc_html__('New Property Category Custom', 'wpresidence-core')
),
'hierarchical' => true,
'query_var' => true,
'show_in_rest' => true,
'rewrite' => array('slug' => 'custom_category')
)
);
}
endif;
If you want to add for property, use ‘estate_property’ in the register_taxonomy function,’estate_agent’ for an agent, ‘estate_agency’ for the agency,’estate_developer’ for the developer, and ‘wpestate_invoice’ for invoices.
Also, replace ‘property_custom_category’ with your taxonomy name.
There are other parameters you can setup. Look over the official documentation to see how you can do that : https://developer.wordpress.org/reference/functions/register_taxonomy/