fixing translations namespace
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2024-12-04 16:24:44 +01:00
parent 99485faa0c
commit 2646de2df6

View File

@ -92,7 +92,7 @@ add_filter('views_edit-artisans', function ($views) {
$post_type, $post_type,
$status, $status,
$class, $class,
__('Offline', 'text-domain'), __('Offline', 'metiers-patrimoine-theme'),
$count $count
); );
} }
@ -115,12 +115,12 @@ function add_custom_post_status($post_states, $post)
// Ajouter le statut "Publié" si l'article est publié // Ajouter le statut "Publié" si l'article est publié
if ('publish' === $post->post_status) { if ('publish' === $post->post_status) {
$post_states[] = __('Publié', 'text-domain'); // Affiche "Publié" $post_states[] = __('Publié', 'metiers-patrimoine-theme'); // Affiche "Publié"
} }
// Ajouter votre statut personnalisé (ex : "offline") si c'est le cas // Ajouter votre statut personnalisé (ex : "offline") si c'est le cas
if ('offline' === get_post_status($post->ID)) { if ('offline' === get_post_status($post->ID)) {
$post_states[] = __('Offline', 'text-domain'); // Affiche "En attente" $post_states[] = __('Offline', 'metiers-patrimoine-theme'); // Affiche "En attente"
} }
} }
} }