JoeHana
7/1/2013 - 12:30 AM

Custom Labels for Property Archive Tools

Custom Labels for Property Archive Tools

<?php

/**
 * Custom Labels for Property Archive Tools
 */
 
add_filter('wpcasa_property_archive_title_order_args', 'custom_property_archive_title_order_args');

function custom_property_archive_title_order_args($args) {
    $args = array(
    
        'orderby' => true,
    	'order'   => true,
    	'labels'  => array(	
    		'orderby'	  => _x( 'Order by', 'property title actions', 'wpcasa' ),
    		'date'		  => _x( 'Date', 'property title actions', 'wpcasa' ),
    		'orderby_sep' => _x( 'or', 'property title actions', 'wpcasa' ),
    		'price'		  => _x( 'Price', 'property title actions', 'wpcasa' ),
    		'order'		  => _x( 'Order', 'property title actions', 'wpcasa' ),
    		'desc'		  => _x( 'DESC', 'property title actions', 'wpcasa' ),
    		'order_sep'   => _x( 'or', 'property title actions', 'wpcasa' ),
    		'asc'		  => _x( 'ASC', 'property title actions', 'wpcasa' )		
    	)
    
    );
	
	return $args;
}