flegfleg / cmb2-field-calendar

Calendar field type for CMB2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMB2 Field Calendar

Allow calendar for a post

Installation

Composer

composer require anewholm/cmb2-field-calendar

Manual

  1. Download the plugin
  2. Place the plugin folder in your /wp-content/plugins/ directory
  3. Activate the plugin in the plugins dashboard

Usage

array(
  'id' => $prefix . 'location_metabox_calendar',
  'title' => __( 'Calendar', $plugin_slug ),
  'object_types' => array( $post_type, ), // Post type
  'context' => 'side',
  'priority' => 'high',
  'show_names' => false,
  'fields' => array(
    array(
      'name' => __( 'Calendar', $plugin_slug ),
      'id' => $plugin_slug . '_location_calendar',
      'type' => 'calendar',
      'desc' => 'Used in Maps.',
    ),
  ),
),

About

Calendar field type for CMB2.

License:MIT License


Languages

Language:PHP 99.6%Language:JavaScript 0.4%