2017 © Pedro Peláez
 

wordpress-plugin cmb2-switch

image

nsrosenqvist/cmb2-switch

  • Tuesday, June 19, 2018
  • by nsrosenqvist
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

CMB2 Switch Field

A boolean switch field type for CMB2., (*1)

$analytics = new_cmb2_box(array(
    'id'            => 'analytics',
    'title'         => __('Analytics', 'theme'),
));

$analytics_state = $analytics->add_field(array(
    'name' => __( 'Enable Analytics?', 'theme'),
    'id'   => 'analytics_state',
    'type'    => 'switch',
    'default' => cmb2_set_switch_default(true),
));

The Versions

19/06 2018

dev-master

9999999-dev https://github.com/nsrosenqvist/cmb2-switch

  Sources   Download

MIT

The Requires

  • php >=7.0.0
  • cmb2/cmb2 ^2.3.0

 

19/06 2018

1.0.1

1.0.1.0 https://github.com/nsrosenqvist/cmb2-switch

  Sources   Download

MIT

The Requires

  • php >=7.0.0
  • cmb2/cmb2 ^2.3.0

 

18/06 2018

1.0.0

1.0.0.0 https://github.com/nsrosenqvist/cmb2-switch

  Sources   Download

MIT

The Requires

  • php >=7.0.0
  • cmb2/cmb2 ^2.3.0