FIX Optimising comments
This commit is contained in:
parent
d97b5d9f3c
commit
54f4505480
|
|
@ -4,8 +4,6 @@ ARTISANS POST TITLE & ADRESS STATE UPDATER
|
|||
------------------------------------------*/
|
||||
function metiers_patrimoine_artisans_post_updater($post_id)
|
||||
{
|
||||
|
||||
|
||||
if (!$post_id) return;
|
||||
|
||||
$my_post = array();
|
||||
|
|
@ -20,7 +18,6 @@ function metiers_patrimoine_artisans_post_updater($post_id)
|
|||
|
||||
if ($address && isset($address['country'])) {
|
||||
$stateGenericName = getGenericStateNameFromAcfStateName($address['state']) ?? "";
|
||||
// Met à jour le champ personnalisé 'country' avec la valeur du pays de l'adresse
|
||||
update_post_meta($post_id, 'state', $stateGenericName);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user