Skip to content

Instantly share code, notes, and snippets.

@JoeHana
Created January 29, 2014 01:29
Show Gist options
  • Save JoeHana/8680000 to your computer and use it in GitHub Desktop.
Save JoeHana/8680000 to your computer and use it in GitHub Desktop.
<?php
/**
* Custom number of beds and baths
*/
add_filter( 'wpsight_standard_details', 'custom_standard_details', 20 );
function custom_standard_details( $details ) {
// Beds
$details['details_1']['data'] = array(
'' => __( 'n/d', 'wpsight' ),
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'6' => '6',
'7' => '7',
'8' => '8',
'9' => '9',
'10' => '10'
);
// Baths
$details['details_2']['data'] = array(
'' => __( 'n/d', 'wpsight' ),
'1' => '1',
'2' => '2',
'3' => '3',
'4' => '4',
'5' => '5',
'6' => '6',
'7' => '7',
'8' => '8',
'9' => '9',
'10' => '10'
);
return $details;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment