Last active
December 12, 2015 09:39
-
-
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.
This file contains 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 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