WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/form option

Contents

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.