facetwp wp job manager

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
<?php

// add currentcy to rate
add_filter( ‘facetwp_index_row’, function( $params, $class ) {
if ( ‘my_facet_name’ == $params[‘facet_name’] ) { // change ‘my_facet_name’ to name of your facet
$currency = get_custom_field( ‘name_of_field’, $params[‘post_id’] ); // change ‘name_of_field’ to your field name to look up the currency field by $params[‘post_id’];
$params[‘facet_display_value’] = $params[‘facet_display_value’] . ‘ ‘ . $currency;
}
return $params;
}, 10, 2 );
{{/gist}}