CLEAN cleaning unused commented code
This commit is contained in:
parent
317cc41ce4
commit
7baece3f6b
|
|
@ -26,19 +26,6 @@ function save_acf_post_mdp_status($post_id)
|
||||||
}
|
}
|
||||||
add_action('acf/save_post', 'save_acf_post_mdp_status');
|
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
|
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();
|
$metiers_by_parent = getAllMetiersTermsByParents();
|
||||||
$batiments_by_parent = getAllBatimentsTermsByParents();
|
$batiments_by_parent = getAllBatimentsTermsByParents();
|
||||||
$conseillers = get_users();
|
$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");
|
$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;
|
$mdp_status_choices = isset($mdp_status_datas['choices']) ? $mdp_status_datas['choices'] : null;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// write_log($mdp_status_choices);
|
|
||||||
|
|
||||||
$meta_key = 'mdp_status';
|
$meta_key = 'mdp_status';
|
||||||
$values = get_posts([
|
$values = get_posts([
|
||||||
'post_type' => 'artisans',
|
'post_type' => 'artisans',
|
||||||
|
|
@ -250,7 +227,7 @@ function metiers_patrimoine_filter_posts_declare_dropdowns()
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
<select name="mdpstatus">
|
<select name="mdpstatus">
|
||||||
<option value="" class="please-select"><?php _e('Statut', 'metiers-patrimoine-theme'); ?></option>
|
<option value="" class="please-select"><?php _e('Statut de travail', 'metiers-patrimoine-theme'); ?></option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$is_current = isset($_GET['mdpstatus']) ? $_GET['mdpstatus'] : '';
|
$is_current = isset($_GET['mdpstatus']) ? $_GET['mdpstatus'] : '';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user