Password


目录

Description

The Password field creates an input for providing a password using a masked field.

Screenshots

Creating a Password field in the ACF UI.

Creating a Password field.

Settings on the Presentation tab allow you to control how the Password field will appear.

Settings on the Presentation tab allow you to control how the Password field will appear.

How the password field might appear to content editors. Instructions added in the Presentation tab are visible here.

How the password field might appear to content editors. Instructions added in the Presentation tab are visible here.

Settings

Template usage

Get value

It’s unlikely you’re going to want to output password fields to the frontend, but rather use the value in other code. The following example shows how to load the value of the field “password” from an ACF options page.

$value = get_field( "password", "option");

版本号 #1
由 壳壳虫 创建于 2026-08-29 15:44:03 UTC
由 壳壳虫 更新于 2026-08-29 15:44:03 UTC