This is a fork of https://github.com/BraadMartin/components which has been converted into a composer package., (*1)
Installation
composer require seothemes/rgba-customizer-control
Setup
RGBA Customizer Control uses PSR-4 autoloading., (*2)
To use in your theme or plugin, use the following namespace:, (*3)
use SEOThemes\RgbaCustomizerControl\RgbaCustomizerControl;
Once the namespace has been imported you can simply call the class:, (*4)
new RgbaCustomizerControl;
Example:, (*5)
$wp_customize->add_control(
new RgbaCustomizerControl (
$wp_customize,
$setting,
array(
'section' => 'colors',
'label' => $label,
'settings' => $setting,
'show_opacity' => true,
'palette' => true,
)
)
);