WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/form option

Description

Echo option value after sanitizing for forms.

Usage

<?php form_option$option ?>

Parameters

$option
(string) (required) Option name.
Default: None

Return Values

(Echo) 
echos the value in a get_option after its passed through esc_attr()

Examples

Notes

Change Log

Since: 1.5.0

Source File

form_option() is located in wp-includes/option.php.

Related

See also index of Function Reference and index of Template Tags.