Skip to content

Instantly share code, notes, and snippets.

@gspice
Created August 26, 2014 01:03
Show Gist options
  • Save gspice/2e03ff4cdc9fd1bd7ee9 to your computer and use it in GitHub Desktop.
Save gspice/2e03ff4cdc9fd1bd7ee9 to your computer and use it in GitHub Desktop.
//* Filter the property details array
add_filter( 'agentpress_property_details', 'agentpress_property_details_filter' );
function agentpress_property_details_filter( $details ) {
$details['col1'] = array(
__( 'Price:', 'agentpress' ) => '_listing_price',
__( 'Address:', 'agentpress' ) => '_listing_address',
__( 'City:', 'agentpress' ) => '_listing_city',
__( 'State:', 'agentpress' ) => '_listing_state',
__( 'ZIP:', 'agentpress' ) => '_listing_zip',
);
$details['col2'] = array(
__( 'MLS #:', 'agentpress' ) => '_listing_mls',
__( 'Square Feet:', 'agentpress' ) => '_listing_sqft',
__( 'Bedrooms:', 'agentpress' ) => '_listing_bedrooms',
__( 'Bathrooms:', 'agentpress' ) => '_listing_bathrooms',
__( 'Garage Spaces:', 'agentpress' ) => '_listing_garage',
);
return $details;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment