Prints option value after sanitizing for forms.
Parameters
$option
stringrequired- 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.
$option
stringrequiredfunction 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.