Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amnestywebsite/cmb2-password-field
https://github.com/amnestywebsite/cmb2-password-field
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/amnestywebsite/cmb2-password-field
- Owner: amnestywebsite
- License: other
- Created: 2024-02-13T12:47:34.000Z (9 months ago)
- Default Branch: develop
- Last Pushed: 2024-02-28T14:51:08.000Z (9 months ago)
- Last Synced: 2024-04-29T23:51:52.963Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# CMB2 Password Field
This plugin adds support for a masked password-style field to CMB2.## Usage
See the [CMB2](https://github.com/CMB2/CMB2/wiki) Wiki for information on how to use CMB2.This field behaves just like CMB2's [text](https://github.com/CMB2/CMB2/wiki/Field-Types#text) field type.
```php
$metabox->add_field(
[
'name' => 'My API Key',
'desc' => 'API key for some service',
'default' => '',
'id' => 'my-api-key',
'type' => 'password',
]
);
```