form_option() WordPress Function

The form_option() function is used to create an HTML

form_option( string $option ) #

Prints option value after sanitizing for forms.


Parameters

$option

(string)(Required)Option name.


Top ↑

Source

File: wp-includes/option.php

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


Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More