diff --git a/includes/artisans-columns-filters.php b/includes/artisans-columns-filters.php index dd4bca6..161d699 100644 --- a/includes/artisans-columns-filters.php +++ b/includes/artisans-columns-filters.php @@ -26,19 +26,6 @@ function save_acf_post_mdp_status($post_id) } add_action('acf/save_post', 'save_acf_post_mdp_status'); -// // apply the abose meta setting for all posts -// function apply_acf_post_mdp_status_for_all_posts() -// { -// $posts = get_posts(array( -// 'post_type' => 'artisans', -// 'numberposts' => -1 -// )); -// foreach ($posts as $post) { -// save_acf_post_mdp_status($post->ID); -// } -// } -// add_action('init', 'apply_acf_post_mdp_status_for_all_posts'); - /* ---------------------------------------------------------------------- DÉCLARATION DES COLONNES CUSTOM DANS LA LISTE DES POSTS ARTISANS @@ -166,21 +153,11 @@ function metiers_patrimoine_filter_posts_declare_dropdowns() $metiers_by_parent = getAllMetiersTermsByParents(); $batiments_by_parent = getAllBatimentsTermsByParents(); $conseillers = get_users(); - - // $mdp_status_field = get_field_object('mdp_status'); - // $mdp_status_choices = isset($mdp_status_field['choices']) ? $mdp_status_field['choices'] : array(); - $mdp_status_datar = acf_get_field("mdp_status",); $mdp_status_datas = get_field_object("mdp_status"); - // write_log($typenow); - // write_log($mdp_status_datar); - // write_log($mdp_status_datas); $mdp_status_choices = isset($mdp_status_datas['choices']) ? $mdp_status_datas['choices'] : null; - - // write_log($mdp_status_choices); - $meta_key = 'mdp_status'; $values = get_posts([ 'post_type' => 'artisans', @@ -250,7 +227,7 @@ function metiers_patrimoine_filter_posts_declare_dropdowns() ?>