form_option( string $option )

Prints option value after sanitizing for forms.


Parameters

$option string Required
Option name.

Top ↑

Source

File: wp-includes/option.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes

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