The following information is sourced from WordPress.org and was last synced on Monday 21st of June 2021 am30 05:51:42 AM.

Description

Restrict Advanced Custom Fields color picker field to a specific subset of custom colors. Removes the color wheel and slider from the field UI so the user can’t pick any other colors

Installation

  1. Upload acf-restrict-color-picker to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

I have a question

Leave your question in the support tab and we’ll respond!

Changelog

1.3.1

  • Bug fix: Adds check for false return from get_theme_support (Thanks @faketib0 and Dan Mensinger!)

1.3

  • Adds option to include the current theme’s colors. Thank you to @mrwweb for this idea!
  • Adds acfrcpo_get_color_palette function to get the current color palette. Thank you to @badjesus for the feature request!

1.2.1

  • Fixes $l10n parameter syntax in wp_localize_script.

1.2

  • Finally fixes long standing issue with multiple instances of color pickers.

1.1

  • Change the plugin name to better match similar plugins in the ACF world.

1.0

  • First version of the plugin

Keep up to date with all things ACF!

Subscribe to our newsletter or follow @awesomeacf on Twitter!