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

★ 6stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/mustardbees/cmb-field-snippet/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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