From 6ed5634638653b5783686a21fcf593e68684837f Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 17 Feb 2026 14:56:12 +0100 Subject: [PATCH] FEATURE Adding hasPostTypeNumerotation function to inform about specific post types numerotation supports --- includes/utilities.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/includes/utilities.php b/includes/utilities.php index faa7cfe..9b9dbbb 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -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; + } +}