form_option( string $option )

In this article

Prints option value after sanitizing for forms.

Parameters

$optionstringrequired
Option name.

Source

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

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.