WP Manifestindependent plugin directory
manifest / content / cmb-field-snippet

CMB Field Type: Snippet

Display code snippets such as shortcodes for easy copy/paste. A field type for Custom Metaboxes and Fields for WordPress

by Phil Wylie · github.com/mustardbees/cmb-field-snippet · website

6stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/mustardbees/cmb-field-snippet/archive/refs/heads/master.zip

Readme

CMB Field Type: Snippet

Description

Display code snippets such as shortcodes for easy copy/paste. A field type for Custom Metaboxes and Fields for WordPress.

Usage

pw_snippet - Display a code snippet such as a shortcode for easy copy/paste. Example:

array(
    'name' => 'Shortcode',
    'desc' => 'Copy and paste shortcode into your content where required',
    'snippet' => '[example shortcode="true"]', // The snippet to display
    'id'   => $prefix . 'snippet',
    'type' => 'pw_snippet',
),

Screenshot

Image

Read the full README on GitHub →