Install
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/agence-ho5/carbon-fields-radio-color/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
This plugin is a color picker inspired of wordpress gutenberg native color picker and extended from native Carbon Field Radio Field.
This plugin can be used as Wordpress Plugin or as wordpress mu-plugin, including with bedrock.
To know advanced usage see : Official Radio Field Documentation
Basic usage
Field::make( 'radio_color', 'color', __( 'Choose a color' ) )
->set_options( [
'red' => "#ff0000",
'green' => "#00ff00",
'blue' => "#0000ff"
] );
Install (with composer for Bedrock)
composer require agence-ho5/carbon-fields-radio-color