options = get_option('acf_rcpo_settings'); ?>

Restrict Color Picker Options


'; print 'When configuring a color picker field, if the \'Default Value\' is set, this will override the master color options (defined below) for that field. You may prepend default- to a hex value to enable that color by default.

'; print 'Examples:
'; print '#333, #666, #999
'; print '#ff0000, #00ff00, default-#0000ff
'; } /** * Prints the color options field. */ public function print_color_field() { if (isset($this->options['color'])) { $color = esc_attr($this->options['color']); } else { $color = ''; } $output = ""; $output .= '

Comma-separated list of HEX color values.

'; echo $output; } /** * Prints the 'Include theme colors' field. */ public function print_include_theme_palette_field() { if (isset($this->options['include_theme_palette'])) { $checked = 'checked'; } else { $checked = ''; } $output = ""; $output .= '

If checked, the current theme\'s color palette will be included with your custom color options.

'; echo $output; } } if (is_admin()) { $acf_rcpo_settings_page = new ACF_RCPO_Settings_Page(); }