Display code snippets such as shortcodes for easy copy/paste. A field type for Custom Metaboxes and Fields for WordPress.
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',
),