Hi, trying to create a plugin that reformats the sitemap before it's displayed - removes underscores for spaces to start with. Unclear how I access the sitemap, have been looking at
tpl_toc()
- am I supoosed to modify the $TOC global array or do I need to pull it from metedata
p_get_metadata()
Also if this is to be a plugin is the hook TPL_TOC_RENDER and BEFORE or AFTER?
$controller->register_hook('TPL_TOC_RENDER', 'BEFORE', $this, 'handle_test');