WP Manifestindependent plugin directory
manifest / content / cmb2-field-js-controls

CMB2 Field JS Controls

Show any field similar to Wordpress publishing actions (Post/Page post_status, visibility and post_date submit box field)

by Tsunoa · github.com/rubengc/cmb2-field-js-controls · website

9stars
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/rubengc/cmb2-field-js-controls/archive/refs/heads/master.zip

Declares an update source (https://github.com/rubengc/cmb2-field-js-controls), so updates arrive through the plugin's own updater.

From the readme

CMB2 Field JS Controls Plugin for CMB2 to show any field similar to Wordpress publishing actions (Post/Page poststatus, visibility and postdate submit box field). Installation You can install this field type as you would a WordPress plugin: - Download the plugin - Place the plugin folder in your /wp-content/plugins/ directory - Activate the plugin in the Plugin dashboard Parameters Options : - icon (string, default = '') : Icon to show. Dashicons supported by default so you only need to define dashicons-edit instead of dashicons dashicons-edit. Empty means no icon. - jscontrols (array) : Array of setting for the javascript controls to edit, save and cancel - editbutton (string, default = 'Edit') : Text of edit button - savebutton (string, default = 'OK') : Text of save button - cancelbutton (string, default = 'Cancel') : Text of cancel button Important note Currently there is no way to output content before/after a field based on custom parameter value so to use this plugin you need setup your field like in examples section. Examples Customize how CMB2 Field JS Controls output the field value CMB2 Field JS Controls includes WP JS Hooks library where you can f

Read the full README on GitHub →