Filter the pricing unavailable text for a floorplan

Some APIs don’t return information for floorplans with no availability, and data entry errors by property managers can lead to situations where pricing is unavailable for a floorplan that, in fact, does have availability. So our default for when pricing cannot be found is to output ‘Pricing unavailable’ for that floorplan.

However, specific clients may want to change that to cut down on the number of calls they get for properties they know are unavailable.

Here’s a filter to accomplish that:

add_filter( 'rentfetch_floorplan_pricing_unavailable_text', 'my_pricing_unavailable_text' );
function my_pricing_unavailable_text( $text ) {
    return 'Unavailable';