JoeHana
9/3/2013 - 1:38 AM

Custom number of beds and baths

Custom number of beds and baths

<?php

/**
 * Custom number of beds and baths
 */
 
add_filter( 'wpsight_standard_details', 'custom_standard_details', 100 );
 
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;
 
}