Created
September 1, 2015 21:05
-
-
Save SebastienGicquel/39051694659e944cdd02 to your computer and use it in GitHub Desktop.
Index facetWP Google Map adress
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
// index lieux tournage pays | |
function index_acf_google_map_address($params) { | |
if ('films_acf_lieux_de_tournage_pays' == $params['facet_name']) { | |
$address = $params['facet_value']['address']; // sinon essayer $params['facet_value'][0]['address'] | |
$params['facet_value'] = $address; | |
$params['facet_display_value'] = $address; | |
} | |
return $params; | |
} | |
add_filter('facetwp_index_row', __NAMESPACE__ . '\\index_acf_google_map_address', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment