2017 © Pedro PelĂĄez
 

wordpress-plugin cmb2-plus

Common utility classes for the CMB2 plugin on WordPress.

image

logoscon/cmb2-plus

Common utility classes for the CMB2 plugin on WordPress.

  • Monday, December 26, 2016
  • by s3rgiosan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4,023 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

CMB2 Plus

Common utility classes for the CMB2 plugin on WordPress., (*1)

Usage

A dropdown for taxonomy terms which does NOT set the term on the post

$cmb->add_field( array(
    'name'           => 'Featured Category',
    'desc'           => 'Set a featured category for this post.',
    'id'             => '_cmb2_featured_category',
    'type'           => 'select',
    'options_cb'     => 'cmb2_get_term_options',
    'get_terms_args' => array(
        'taxonomy'   => 'category',
        'hide_empty' => false,
    ),
) );

Front Page show_on filter

This shows only if a static page is set and you're editing it., (*2)

'show_on' => array( 'key' => 'front-page', 'value' => '' ),

Changelog

1.0.0

  • Initial release.

The Versions

26/12 2016

dev-master

9999999-dev https://github.com/log-oscon/cmb2-plus

Common utility classes for the CMB2 plugin on WordPress.

  Sources   Download

GPL-2.0+

The Development Requires

wordpress library toolkit cmb2

25/10 2016

1.0.0

1.0.0.0 https://github.com/log-oscon/cmb2-plus

Common utility classes for the CMB2 plugin on WordPress.

  Sources   Download

GPL-2.0+

The Development Requires

wordpress library toolkit cmb2