WordPress: Function Reference/delete option:修订间差异
来自站长百科
(新页面: == Description == A safe way of removing a named option/value pair from the options database table. == Usage == <pre> <?php delete_option($name); ?> </pre> == Example == === Usage ==...) |
无编辑摘要 |
||
第1行: | 第1行: | ||
== Description == | == Description == | ||
== 描述== | |||
A safe way of removing a named option/value pair from the options database table. | A safe way of removing a named option/value pair from the options database table. | ||
从数据库表格中安全地删除指定的选项/和选项值。 | |||
== Usage == | == Usage == | ||
== 用法 == | |||
<pre> | |||
<?php delete_option($name); ?> | |||
</pre> | |||
<pre> | <pre> | ||
第10行: | 第20行: | ||
== Example == | == Example == | ||
== 例子 == | |||
=== Usage === | === Usage === | ||
=== 用法=== | |||
<pre> | |||
<?php delete_option("myhack_extraction_length"); ?> | |||
</pre> | |||
<pre> | <pre> | ||
第18行: | 第36行: | ||
== Parameters == | == Parameters == | ||
== 参数 == | |||
{{Parameter|$name|string|Name of the option to be deleted. A list of valid default options can be found at the [[WordPress:Option Reference]].}} | {{Parameter|$name|string|Name of the option to be deleted. A list of valid default options can be found at the [[WordPress:Option Reference]].}} | ||
{{Parameter|$name|string|将要删除的选项名。可以在[[WordPress:Option Reference|选项参考]]中找到有效的默认选项的列表。}} |
2008年7月22日 (二) 13:29的版本
Description
描述
A safe way of removing a named option/value pair from the options database table.
从数据库表格中安全地删除指定的选项/和选项值。
Usage
用法
<?php delete_option($name); ?>
<?php delete_option($name); ?>
Example
例子
Usage
用法
<?php delete_option("myhack_extraction_length"); ?>
<?php delete_option("myhack_extraction_length"); ?>