Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bhubbard/1e8b3dd055c7510c7571 to your computer and use it in GitHub Desktop.
Save bhubbard/1e8b3dd055c7510c7571 to your computer and use it in GitHub Desktop.
# Add filter for listing details
add_filter( 'wp_listings_property_details', 'custom_wp_listings_details');
function custom_wp_listings_details() {
$property_details_columns = array(
'col1' => array(
__( 'Price:', 'wp_listings' ) => '_listing_price',
__( 'Address:', 'wp_listings' ) => '_listing_address',
__( 'City:', 'wp_listings' ) => '_listing_city',
__( 'State:', 'wp_listings' ) => '_listing_state',
__( 'ZIP:', 'wp_listings' ) => '_listing_zip',
__( 'MLS #:', 'wp_listings' ) => '_listing_mls',
__( 'Open House Time & Date:', 'wp_listings' ) => '_listing_open_house'
),
'col2' => array(
__( 'Year Built:', 'wp_listings' ) => '_listing_year_built',
__( 'Floors:', 'wp_listings' ) => '_listing_floors',
__( 'Square Feet:', 'wp_listings' ) => '_listing_sqft',
__( 'Lot Square Feet:', 'wp_listings' ) => '_listing_lot_sqft',
__( 'Bedrooms:', 'wp_listings' ) => '_listing_bedrooms',
__( 'Bathrooms:', 'wp_listings' ) => '_listing_bathrooms',
__( 'Garage:', 'wp_listings' ) => '_listing_garage'
),
) ;
return $property_details_columns;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment