Skip to content

Commit

Permalink
3.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Levdbas committed Jun 5, 2024
1 parent f7f34a5 commit e8a00af
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ If you're coming from the original ACF Icon Picker plugin, you can switch to thi
1. Deactivate the old *ACF Icon Picker plugin*
2. Install the *ACF SVG Icon Picker plugin* via Composer or manually
3. Activate the *ACF SVG Icon Picker plugin*
4. Check if the field type is now available in your ACF field settings
4. Go over your field configurations and change the field type from `icon-picker` to `svg_icon_picker` in the field settings. Be aware of the underscores in the field type name.
5. Check if the field type is now available in your ACF field settings

## Filters

Expand Down
2 changes: 1 addition & 1 deletion acf-svg-icon-picker.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Change this version number and the version in the
* docblock above when releasing a new version of this plugin.
*/
define( 'ACF_SVG_ICON_PICKER_VERSION', '3.0.0' );
define( 'ACF_SVG_ICON_PICKER_VERSION', '3.1.0' );

define( 'ACF_SVG_ICON_PICKER_URL', plugin_dir_url( __FILE__ ) );
define( 'ACF_SVG_ICON_PICKER_PATH', plugin_dir_path( __FILE__ ) );
Expand Down
92 changes: 92 additions & 0 deletions tests/assets/json/test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"key": "group_6660211ac93b5",
"title": "Icon picker test",
"fields": [
{
"key": "field_666021191a35f",
"label": "Test flexible",
"name": "test_flexible",
"aria-label": "",
"type": "flexible_content",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"layouts": {
"layout_6660212d60dbb": {
"key": "layout_6660212d60dbb",
"name": "test_layout",
"label": "Test layout",
"display": "block",
"sub_fields": [
{
"key": "field_6660213b1a360",
"label": "Test text field",
"name": "test_text_field",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_666021541a361",
"label": "Test icon picker",
"name": "test_icon_picker",
"aria-label": "",
"type": "svg_icon_picker",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"initial_value": ""
}
],
"min": "",
"max": ""
}
},
"min": "",
"max": "",
"button_label": "Nieuwe regel"
}
],
"location": [
[
{
"param": "page_template",
"operator": "==",
"value": "home.php"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": true,
"description": "",
"show_in_rest": 0,
"modified": 1717576059
}

0 comments on commit e8a00af

Please sign in to comment.