WordPress at Your Fingertips
function is not described

WC_Settings_API::generate_password_html() public WC 1.0.0

Generate Password Input HTML.

{} It's a method of the class: WC_Settings_API{}

No Hooks.

Return

String.

Usage

$WC_Settings_API = new WC_Settings_API();
$WC_Settings_API->generate_password_html( $key, $data );
$key(string) (required)
Field key.
$data(array) (required)
Field data.

Changelog

Since 1.0.0 Introduced.

Code of WC_Settings_API::generate_password_html() WC 5.5.2

<?php
public function generate_password_html( $key, $data ) {
	$data['type'] = 'password';
	return $this->generate_text_html( $key, $data );
}