fixing translations namespace
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
99485faa0c
commit
2646de2df6
|
|
@ -92,7 +92,7 @@ add_filter('views_edit-artisans', function ($views) {
|
|||
$post_type,
|
||||
$status,
|
||||
$class,
|
||||
__('Offline', 'text-domain'),
|
||||
__('Offline', 'metiers-patrimoine-theme'),
|
||||
$count
|
||||
);
|
||||
}
|
||||
|
|
@ -115,12 +115,12 @@ function add_custom_post_status($post_states, $post)
|
|||
|
||||
// Ajouter le statut "Publié" si l'article est publié
|
||||
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
|
||||
if ('offline' === get_post_status($post->ID)) {
|
||||
$post_states[] = __('Offline', 'text-domain'); // Affiche "En attente"
|
||||
$post_states[] = __('Offline', 'metiers-patrimoine-theme'); // Affiche "En attente"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user