Skip to content

Instantly share code, notes, and snippets.

@davebonds
Last active August 29, 2015 14:02
Show Gist options
  • Save davebonds/c6ca572c1e7aba50e74e to your computer and use it in GitHub Desktop.
Save davebonds/c6ca572c1e7aba50e74e to your computer and use it in GitHub Desktop.
wp-listings-details-filter.php
# 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