acf_field_password::initialize
This function will setup the field type data
Method of the class: acf_field_password{}
No Hooks.
Returns
n/a.
Usage
$acf_field_password = new acf_field_password(); $acf_field_password->initialize();
Changelog
| Since 5.0.0 | Introduced. |
acf_field_password::initialize() acf field password::initialize code ACF 6.8.8
function initialize() {
// vars
$this->name = 'password';
$this->label = __( 'Password', 'acf' );
$this->description = __( 'An input for providing a password using a masked field.', 'acf' );
$this->preview_image = acf_get_url() . '/assets/images/field-type-previews/field-preview-password.png';
$this->doc_url = acf_add_url_utm_tags( 'https://www.advancedcustomfields.com/resources/password/', 'docs', 'field-type-selection' );
$this->defaults = array(
'placeholder' => '',
'prepend' => '',
'append' => '',
);
}