form_option() WordPress Function
The form_option() function is used to create an HTML
form_option( string $option ) #
Prints option value after sanitizing for forms.
Parameters
- $option
(string)(Required)Option name.
Source
File: wp-includes/option.php
function form_option( $option ) { echo esc_attr( get_option( $option ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |