Created
January 29, 2014 01:29
-
-
Save JoeHana/8680000 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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