函数原型
form_option( string $option )
函数描述
Prints option value after sanitizing for forms.
是否弃用
未弃用
函数参数
-
$option
string
Required - Option name.
函数返回值
无
函数位置
File: wp-includes/option.php.
函数源码
function form_option( $option ) {
echo esc_attr( get_option( $option ) );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |

