Filter the ‘bathrooms’ label for floorplans

The default here is to show something like this, where we show a bedrooms label but not a bathrooms label:

But for some sites, you may wish to customize this label (adding ‘Bath’ or ‘Bathroom’ or whatever you’d like. Here’s a sample filter to accomplish that:

add_filter( 'rentfetch_customize_baths_text', 'my_customize_baths_text', 10, 1 );
function my_customize_baths_text( $baths ) {
    if ( $baths < 2 ) {
        return $baths . ' Bathroom';       
    } else {
        return $baths . ' Bathrooms';
    }        
}