WordPress at a glance

form_option() WP 1.0

Print option value after sanitizing for forms.

Works based on: get_option()
✈ 1 time = 0.003047s = very slow | 50000 times = 1.75s = fast | PHP 7.2.5, WP 4.9.8

No Hooks.

Return

Nothing (null).

Usage

form_option( $option );
$option(string) (required)
Option name.

Code of form option: wp-includes/option.php WP 5.2.2

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

Related Functions

From tag: form functions

No comments
    Hello, !     Log In . Register