Skip to content

automex/cmb2-hide-show-password-field

Repository files navigation

cmb2-hide-show-password-field

Adds a Hide/Show Password Field to CMB2.

Usage

$amex_metabox = new_cmb2_box( array(
    'title' => __('Metabox', 'myprefix'),
    'id'    => 'amex_hide_show_field_type_demo'
));

$amex_metabox_fields = $amex_metabox->add_field(array(
    'name' => __( 'Hide/show field', 'myprefix'),
    'id'   => 'amex_custom_field',
    'type' => 'hide_show_password'
));

$amex_metabox_fields = $amex_metabox->add_field(array(
    'name' => __( 'Hide/show field medium', 'myprefix'),
    'id'   => 'amex_custom_field_m',
    'type' => 'hide_show_password_medium'
));

Screenshot

screenshot

WordPress.org

This plugin is also published on the WordPress Repository and could be found here!

License

The code and the documentation are released under the GPLv3 License.

Releases

No releases published

Packages

No packages published