Skip to content

Instantly share code, notes, and snippets.

@JoeHana
Last active December 12, 2015 09:39
Show Gist options
  • Save JoeHana/4752915 to your computer and use it in GitHub Desktop.
Save JoeHana/4752915 to your computer and use it in GitHub Desktop.
This Code can be added to the functions.php of the Theme (Child Theme) or to wpCasa Functions Plugin.
<?php
/**
* Custom Order Options
*/
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment