rentfetch_property_fees_description
Filters the description text that appears above the property fees table.
Description
This filter allows you to customize or remove the introductory text displayed before the property fees. The filtered text is automatically processed through WordPress’s the_content filter, which adds paragraph tags (<p>) and applies other standard content filters.
The description is wrapped in a <div class="property-fees-description"> container for consistent styling, regardless of what content you return.
Parameters
$description (string): The description text.
Default: 'Please note that prices shown are base rent. To help budget your monthly costs and make it easy to understand what your rent includes and what may be additional, we've included the list of potential fees below.'
$post_id (int|null)
The post ID of the property, or null if not available.
Return
(string) — The filtered description text. Return an empty string to remove the description entirely.
Examples
Change the description text:
<?php
add_filter( 'rentfetch_property_fees_description', function( $description, $post_id ) {
return 'The following fees may apply to your lease. Please contact us for details.';
}, 10, 2 );
Use HTML in the description
<?php
add_filter( 'rentfetch_property_fees_description', function( $description, $post_id ) {
return 'Base rent does not include utilities. <strong>Contact our leasing office</strong> for a complete breakdown of costs.';
}, 10, 2 );
Remove the description entirely
<?php
add_filter( 'rentfetch_property_fees_description', '__return_empty_string' );