nsrosenqvist/cmb2-number

This package is abandoned and no longer maintained. No replacement package was suggested.

Installs: 21

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type:wordpress-plugin

1.0.0 2018-06-18 17:02 UTC

This package is auto-updated.

Last update: 2020-06-09 20:10:00 UTC


README

Adds a number field to CMB2.

$countdown = new_cmb2_box( array(
    'id'            => 'countdown',
    'title'         => __('Countdown', 'theme'),
));

$countdown_seconds = $countdown->add_field(array(
    'name' => __( 'Seconds Left', 'theme'),
    'id'   => 'countdown_seconds',
    'type' => 'text_number',
));