このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Advanced Custom Fields: Restrict Color Picker Options

説明

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

Features

Include the color palette from the current theme by enabling the option on the plugin settings page.

Get the current color options palette in your template code with the acfrcpo_get_color_options function.

スクリーンショット

  • Comma-separated list of HEX color values used to define the color options. Optionally include the current theme's color palette as well.
  • Simple color swatches allow the user to easily choose from your color set.

インストール

  1. Upload acf-restrict-color-picker to the /wp-content/plugins/ directory
  2. WordPress の「プラグイン」メニューからプラグインを有効化

FAQ

I have a question

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

評価

2022年4月19日
Perfect, easy solution. Awesome that it can fetch the theme colors defined in theme.json to. Thank you for sharing!
7件のレビューをすべて表示

貢献者と開発者

Advanced Custom Fields: Restrict Color Picker Options はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Advanced Custom Fields: Restrict Color Picker Options” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

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_options 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