FEATURE Adding hasPostTypeNumerotation function to inform about specific post types numerotation supports
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2026-02-17 14:56:12 +01:00
parent c8276ba10d
commit 6ed5634638

View File

@ -60,3 +60,16 @@ function get_archive_page_subtitle_html($post_type)
return '';
}
}
function hasPostTypeNumerotation($post_type)
{
switch ($post_type) {
case 'analyses-etudes':
case 'expositions':
case 'outils-pedagogiques':
case 'recherches':
case 'revues':
return true;
default:
return false;
}
}