register_modifier()dynamically register modifier pluginDescriptionvoidregister_modifierstringnamemixedimpl
Pass in the template modifier name, followed by the PHP function that it
implements it.
&api.register.snippet;
register_modifier()
register_modifier('ss', 'stripslashes');
?>
]]>
In the template, use ss to strip slashes.
]]>
See also
unregister_modifier(),
register_function(),
modifiers section,
extending Smarty with plugins
and
creating plugin modifiers,