diff --git a/includes/admin.php b/includes/admin.php index 418932f..ae6440f 100644 --- a/includes/admin.php +++ b/includes/admin.php @@ -54,7 +54,7 @@ function custom_post_status() 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, - 'label_count' => _n_noop('Unread (%s)', 'Unread (%s)'), + 'label_count' => _n_noop('Hors Ligne (%s)', 'Hors Ligne (%s)'), )); } add_action('init', 'custom_post_status'); @@ -113,24 +113,15 @@ add_action('admin_footer-edit.php', function () { $('#bulk-edit select[name="_status"] option[value="publish"]').text('En ligne'); $('#bulk-edit select[name="_status"] option[value="offline"]').text('Hors ligne'); $('#bulk-edit select[name="_status"] option[value="pending"], #bulk-edit select[name="_status"] option[value="draft"], #bulk-edit select[name="_status"] option[value="private"]').remove(); - - - - }); $new_index) { - // write_log($value); if ($current_index = array_search($value, $menu_order)) { metiers_move_element($menu_order, $current_index, $new_index); } @@ -386,8 +394,6 @@ function add_post_status_to_body_class($classes) if ($post && isset($post->post_status)) { $post_status = $post->post_status; $classes .= ' post-status-' . $post_status; - // $classes[] = 'post-status-' . $post_status; // Ajoute une classe pour le statut du post - write_log($post_status); } return $classes; diff --git a/includes/artisans.php b/includes/artisans.php index 2259130..2b8bda7 100644 --- a/includes/artisans.php +++ b/includes/artisans.php @@ -253,6 +253,11 @@ function remove_rank_math_seo_column_for_artisans($columns) // Appliquer le filtre uniquement pour le post type "artisans" add_filter('manage_artisans_posts_columns', 'remove_rank_math_seo_column_for_artisans', 20); + + + + + /* ---------------------------------------------------------------------- DÉCLARATION DES COLONNES CUSTOM DANS LA LISTE DES POSTS ARTISANS ------------------------------------------------------------------------*/