Skip to content

Instantly share code, notes, and snippets.

@JoeHana
Last active December 12, 2015 09:39
Show Gist options
  • Save JoeHana/4753013 to your computer and use it in GitHub Desktop.
Save JoeHana/4753013 to your computer and use it in GitHub Desktop.
Adds the possibility to have custom price labels
/**
* Custom Price Labels
*/
add_filter( 'wpcasa_get_price_labels', 'custom_price_labels' );
function custom_price_labels($property_price_labels) {
$property_price_labels = array(
'sold' => __( 'SOLD', 'wpcasa' ),
'rented' => __( 'RENTED', 'wpcasa' ),
'request' => __( 'ON REQUEST', 'wpcasa' )
);
return $property_price_labels;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment