{"id":42364,"date":"2016-03-08T01:41:43","date_gmt":"2016-03-08T01:41:43","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/acf-restrict-color-picker\/"},"modified":"2022-01-25T21:51:32","modified_gmt":"2022-01-25T21:51:32","slug":"acf-restrict-color-picker","status":"publish","type":"plugin","link":"https:\/\/azb.wordpress.org\/plugins\/acf-restrict-color-picker\/","author":9185704,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.1","stable_tag":"1.3.1","tested":"5.9.13","requires":"4.0","requires_php":"7.0","requires_plugins":"","header_name":"Advanced Custom Fields: Restrict Color Picker Options","header_author":"Vital","header_description":"","assets_banners_color":"","last_updated":"2022-01-25 21:51:32","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/vtldesign.com","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":17372,"num_ratings":7,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1":{"tag":"1.1","author":"adamwalter","date":"2016-04-27 19:35:12"},"1.2":{"tag":"1.2","author":"adamwalter","date":"2020-08-01 18:45:10"},"1.2.1":{"tag":"1.2.1","author":"adamwalter","date":"2021-04-01 14:51:30"},"1.3":{"tag":"1.3","author":"adamwalter","date":"2021-04-01 17:19:57"},"1.3.1":{"tag":"1.3.1","author":"adamwalter","date":"2022-01-25 21:51:32"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":7},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2030099,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2030099,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.2","1.2.1","1.3","1.3.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2565153,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1366342,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Comma-separated list of HEX color values used to define the color options. Optionally include the current theme's color palette as well.","2":"Simple color swatches allow the user to easily choose from your color set."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,1257,2010],"plugin_category":[59],"plugin_contributors":[88408,167852,167882,90798],"plugin_business_model":[],"class_list":["post-42364","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-color","plugin_tags-custom-fields","plugin_category-utilities-and-tools","plugin_contributors-adamwalter","plugin_contributors-antishow","plugin_contributors-makkal","plugin_contributors-seanseansean","plugin_committers-adamwalter"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/acf-restrict-color-picker\/assets\/icon-128x128.png?rev=2030099","icon_2x":"https:\/\/ps.w.org\/acf-restrict-color-picker\/assets\/icon-256x256.png?rev=2030099","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/acf-restrict-color-picker\/assets\/screenshot-1.png?rev=2565153","caption":"Comma-separated list of HEX color values used to define the color options. Optionally include the current theme's color palette as well."},{"src":"https:\/\/ps.w.org\/acf-restrict-color-picker\/assets\/screenshot-2.png?rev=1366342","caption":"Simple color swatches allow the user to easily choose from your color set."}],"raw_content":"<!--section=description-->\n<p>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<\/p>\n\n<h4>Features<\/h4>\n\n<p><strong>Include the color palette from the current theme<\/strong> by enabling the option on the plugin settings page.<\/p>\n\n<p><strong>Get the current color options palette<\/strong> in your template code with the <code>acfrcpo_get_color_options<\/code> function.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>acf-restrict-color-picker<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='i%20have%20a%20question'><h3>I have a question<\/h3><\/dt>\n<dd><p>Leave your question in the support tab and we'll respond!<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Bug fix: Adds check for false return from get_theme_support (Thanks @faketib0 and Dan Mensinger!)<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Adds option to include the current theme's colors. Thank you to @mrwweb for this idea!<\/li>\n<li>Adds acfrcpo_get_color_options function to get the current color palette. Thank you to @badjesus for the feature request!<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Fixes $l10n parameter syntax in wp_localize_script.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Finally fixes long standing issue with multiple instances of color pickers.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Change the plugin name to better match similar plugins in the ACF world.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First version of the plugin<\/li>\n<\/ul>","raw_excerpt":"Restrict Advanced Custom Fields color picker to a specific subset of colors. Removes color wheel from the field UI so user can&#039;t pick other color &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/42364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=42364"}],"author":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/adamwalter"}],"wp:attachment":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=42364"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=42364"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=42364"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=42364"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=42364"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=42364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}