Uses
Uses | Description |
---|---|
wp-includes/formatting.php: esc_attr() | Escaping for HTML attributes. |
wp-includes/option.php: get_option() | Retrieves an option value based on an option name. |
Prints option value after sanitizing for forms.
(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. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/form_option