Then in that custom plugin directory, you can place whatever Smarty
plugins you need.
You can also use this trick to change other Smarty behavior, such as
whether it can evaluate PHP placed directly in templates. For instance:
<divclass="code panel"style="border-width: 1px;">
<divclass="codeContent panelContent">
function yourmodule_civicrm_config(&$config) {
$smarty = CRM_Core_Smarty::singleton();
array_push($smarty->security_settings['MODIFIER_FUNCS'], 'explode'); // allow the explode() php function to be used as a "modifier" in Smarty templates
}
</div>
</div>
However, be very careful with these settings – if you don't know what
you're doing, you can open security holes or create a mess of code