unregister_modifier()

unregister_modifier()

unregister_modifier() -- dynamically unregister modifier plugin

Description

void unregister_modifier ( string name)

Pass in the template modifier name.

Example 13-1. unregister_modifier()

<?php

// we don't want template designers to strip tags from elements
$smarty->unregister_modifier('strip_tags');

?>

See also register_modifier() and Plugin modifiers,

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.