PHP code example of nsrosenqvist / cmb2-number

1. Go to this page and download the library: Download nsrosenqvist/cmb2-number library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nsrosenqvist / cmb2-number example snippets


$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',
));