A WordPress-centric search engine for devs and theme authors



form_option ›

Since1.5.0
Deprecatedn/a
form_option ( $option )
Parameters:
  • (string) $option Option name.
    Required: Yes
Defined at:
Codex:

Print option value after sanitizing for forms.



Source

function form_option( $option ) {
	echo esc_attr( get_option( $option ) );
}