Prints option value after sanitizing for forms.
Parameters
$optionstringrequired- Option name.
Source
function form_option( $option ) {
echo esc_attr( get_option( $option ) );
}
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
Prints option value after sanitizing for forms.
$optionstringrequiredfunction form_option( $option ) {
echo esc_attr( get_option( $option ) );
}
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.