<table cellspacing="0" cellpadding="0" border="0" width="100%" summary="Header navigation table"><tbody><tr><th align="center" colspan="3">Smarty - the compiling PHPtemplate engine</th> </tr><tr><td valign="bottom" align="left" width="25%"><a accesskey="P" href="api.unregisterfilter.html">Prev</a></td> <td valign="bottom" align="center" width="50%">Chapter 13. Smarty Class Methods()</td> <td valign="bottom" align="right" width="25%"><a accesskey="N" href="api.unregister.object.html">Next</a></td> </tr></tbody></table> # unregisterPlugin()[注销插件] Name unregisterPlugin() ― dynamically unregister plugins Description void unregisterPlugin(string type,string name); This method unregisters plugins which previously have been registered by registerPlugin(), It uses the following parameters: type defines the type of the plugin. Valid values are "function", "block", "compiler" and "modifier". name defines the name of the plugin. 本方法注销registerPlugin()方法之前注册的插件。其参数如下: “type”定义插件的类型,其值为下列之一:“function”、“block”、“compiler”和“modifier”; “name”定义插件的函数名。 **Example 13.32. unregister function plugin** **例13-32.注销函数插件** <table width="100%" bgcolor="#e0e0e0" border="0"><tbody><tr><td>&lt;?php<br/> // we don't want template designers to have access to function plugin "date_now" <br/> //我们不想模板设计者必须访问函数插件“date_now”。<br/> $smarty-&gt;unregisterPlugin("function","date_now");<br/> ?&gt;</td> </tr></tbody></table> 参见[registerPlugin()](#)。 <table cellspacing="0" cellpadding="0" border="0" width="100%" summary="Footer navigation table"><tbody><tr><td valign="top" align="left" width="33%"><a accesskey="P" href="api.unregisterfilter.html">Prev</a></td> <td valign="top" align="center" width="34%"><a accesskey="H" href="index.html">Home</a></td> <td valign="top" align="right" width="33%"><a accesskey="N" href="api.unregister.object.html">Next</a></td> </tr><tr><td valign="top" align="left" width="33%">unregisterFilter()<br/> 注销过滤器<br/></td> <td valign="top" align="center" width="34%"><a accesskey="U" href="api.functions.html">Up</a></td> <td valign="top" align="right" width="33%">unregisterObject()<br/> 注销对象</td> </tr></tbody></table>