From 19409ac062ca52adcb3e3a2fb8616ab89fa3a6b1 Mon Sep 17 00:00:00 2001 From: Vladimir Bryzgalov Date: Sun, 17 May 2026 17:01:05 +0500 Subject: [PATCH] feat(wpmc 1.0.1): wpmc_main_town_slug procedural wrapper Add wpmc_main_town_slug() wrapper function to wpmc-functions.php, delegating to Helpers::main_town_slug(). The function was documented in the Hook API README but was missing from the codebase. Co-Authored-By: Claude Opus 4.7 --- includes/wpmc-functions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/wpmc-functions.php b/includes/wpmc-functions.php index b79fbff..ee86af7 100644 --- a/includes/wpmc-functions.php +++ b/includes/wpmc-functions.php @@ -30,3 +30,10 @@ if (!function_exists('wpmc_remove_domain_link')) { return Helpers::remove_domain_link($url); } } + +if (!function_exists('wpmc_main_town_slug')) { + function wpmc_main_town_slug(): ?string + { + return Helpers::main_town_slug(); + } +}