PHP code example of voceconnect / voce-color-setting
1. Go to this page and download the library: Download voceconnect/voce-color-setting library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
voceconnect / voce-color-setting example snippets
if( ! class_exists( 'Voce_Color_Setting' ) ) {
$page->$group->add_setting( "Field Title", "field_id", array(
'display_callback' => 'vs_display_color_picker',
'sanitize_callbacks' => array( 'vs_sanitize_color_picker' )
) );