pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 264 forks source link

Unable to Repair pods #7129

Open bk912 opened 1 year ago

bk912 commented 1 year ago

Description

So, I am trying to repair the pods on my site programmatically.

Every time I repair the pods it through me exception saying

{"message":"Field bg_overlay_125511 already exists, you cannot rename bg_overlay to that on the get_started_steps pod"}

Here is the code I am using

function repair_each_pod() { $api = pods_api(); $tool = pods_container( \Pods\Tools\Repair::class ); $results = [];

foreach(
    (array) array_keys( (array) $api->load_pods( [ 'fields' => false ] ) )
    as $pod_name
){
    if ( empty( $pod_name ) ) { continue; }

    $pod = $api->load_pod( [ 'name' => $pod_name ], false );

    if ( empty( $pod ) ) { continue; }

    try {
        $results[ $pod_name ] = $tool->repair_groups_and_fields_for_pod( $pod, 'full' ); 
    }catch( \Exception $e ) {
        return [
            'status'    => false,
            'message'   => $e->getMessage(),
            'backtrace' => $e->getTraceAsString(),
            'results'   => $results,
        ];
    }
}

return [
    'status'  => true,
    'message' => 'Successfully repaired',
    'results' => $results,
];

}

the above function failed to repair some pods

the repair functionality work fine, when I edit the damaged pods from pods admin, but the same is not working as programmatically

I having multi site setup, so cannot go and edit each pod in every site

Please help

Version

2.9.19

Testing Instructions

No response

Screenshots / Screencast

image

Possible Workaround

No response

Site Health Information

`
### wp-core ###

version: 6.2.2
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: open
environment_type: local
user_count: 5
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: C:\Users\Balkishan Natani\Local Sites\v5-test\app\public
wordpress_size: loading...
uploads_path: C:\Users\Balkishan Natani\Local Sites\v5-test\app\public/wp-content/uploads
uploads_size: loading...
themes_path: C:\Users\Balkishan Natani\Local Sites\v5-test\app\public/wp-content/themes
themes_size: loading...
plugins_path: C:\Users\Balkishan Natani\Local Sites\v5-test\app\public/wp-content/plugins
plugins_size: loading...
database_size: loading...
total_size: loading...

### wp-dropins (1) ###

db-error.php: true

### wp-active-theme ###

name: 321GoMaster (321GoMaster)
version: 5.0
author: Akash Joshi
author_website: (undefined)
parent_theme: none
theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, post-thumbnails, html5, customize-selective-refresh-widgets, widgets
theme_path: C:\Users\Balkishan Natani\Local Sites\v5-test\app\public/wp-content/themes/321GoMaster
auto_update: Disabled

### wp-mu-plugins (4) ###

jwt-auth.php: author: (undefined), version: (undefined)
ManageWP - Worker Loader: version: 1.0.0, author: GoDaddy
recovery-email.php: author: (undefined), version: (undefined)
wp-cache.php: author: (undefined), version: (undefined)

### wp-plugins-active (14) ###

321GoProject Fitness Assessment: author: (undefined), version: 1.0.0, Auto-updates disabled
Akismet Anti-Spam: Spam Protection: version: 5.2, author: Automattic - Anti Spam Team, Auto-updates disabled
Classic Editor: version: 1.6.3, author: WordPress Contributors, Auto-updates disabled
Gravity Forms: version: 2.7.12, author: Gravity Forms, Auto-updates enabled
Gravity Forms User Registration Add-On: version: 5.1, author: Gravity Forms, Auto-updates disabled
Imsanity: version: 2.8.2, author: Exactly WWW, Auto-updates disabled
ManageWP - Worker: version: 4.9.17, author: GoDaddy, Auto-updates disabled
Pods - Custom Content Types and Fields: version: 2.9.19, author: Pods Framework Team, Auto-updates disabled
Post Types Order: version: 2.0.9, author: Nsp Code (latest version: 2.1), Auto-updates disabled
Redirection: version: 5.3.10, author: John Godley, Auto-updates disabled
WordPress Importer: version: 0.8.1, author: wordpressdotorg, Auto-updates disabled
WP REST API: version: 2.0-beta15, author: WP REST API Team, Auto-updates disabled
WP REST API - OAuth 1.0a Server: version: 0.3.0, author: WP REST API Team, Auto-updates disabled
Yoast SEO: version: 20.13, author: Team Yoast, Auto-updates disabled

### wp-plugins-inactive (5) ###

321GO WP IMPORT: version: 1.0.0, author: Wapology, Auto-updates disabled
Bloom: version: 1.2.25, author: Elegant Themes, Auto-updates disabled
Gravity Forms Signature Add-On: version: 4.4, author: Gravity Forms, Auto-updates disabled
JWT Authentication for WP-API: version: 1.3.2, author: Enrique Chavez, Auto-updates disabled
PushPress.com: version: 1.6.6, author: PushPress, Inc, Auto-updates disabled

### wp-media ###

image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
imagick_version: Not available
file_uploads: File uploads is turned off
post_max_size: 1000M
upload_max_filesize: 300M
max_effective_size: 300 MB
max_file_uploads: 20
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
ghostscript_version: not available

### wp-server ###

server_architecture: Windows NT 10.0 AMD64
httpd_software: nginx/1.16.0
php_version: 8.1.9 64bit
php_sapi: cgi-fcgi
max_input_variables: 4000
time_limit: 1200
memory_limit: 256M
max_input_time: 600
upload_max_filesize: 300M
php_post_max_size: 1000M
curl_version: 7.77.0 OpenSSL/1.1.1q
suhosin: false
imagick_availability: false
pretty_permalinks: true

### wp-database ###

extension: mysqli
server_version: 8.0.16
client_version: mysqlnd 8.1.9
max_allowed_packet: 16777216
max_connections: 151

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: C:\Users\Balkishan Natani\Local Sites\v5-test\app\public/wp-content
WP_PLUGIN_DIR: C:\Users\Balkishan Natani\Local Sites\v5-test\app\public/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: local
DB_CHARSET: utf8
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable

### pods ###

pods-server-software: nginx/1.16.0
pods-user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
pods-session-save-path: undefined
pods-session-save-path-exists: No
pods-session-save-path-writable: No
pods-session-max-lifetime: 1440
pods-opcode-cache-apc: No
pods-opcode-cache-memcached: No
pods-opcode-cache-opcache: Yes
pods-opcode-cache-redis: No
pods-object-cache-apc: No
pods-object-cache-apcu: No
pods-object-cache-memcache: No
pods-object-cache-memcached: No
pods-object-cache-redis: No
pods-memory-current-usage: 33.593M / 40M
pods-memory-current-usage-real: 36.000M
pods-network-wide: No
pods-install-location: C:\Users\Balkishan Natani\Local Sites\v5-test\app\public\wp-content\plugins\pods/
pods-developer: No
pods-tableless-mode: No
pods-relationship-table-enabled: Yes
pods-relationship-table-status: 64
pods-light-mode: No
pods-strict: No
pods-allow-deprecated: Yes
pods-api-cache: Yes
pods-shortcode-allow-evaluate-tags: No
pods-sessions: Disable sessions
pods-can-use-sessions: No
pods-settings-types_only: No
pods-settings-watch_changed_fields: Yes
pods-settings-metadata_integration: Yes
pods-settings-metadata_override_get: Yes

`

Pods Package

{
    "@meta": {
        "version": "2.9.19",
        "build": 1691774538
    },
    "settings": {
        "types_only": "0",
        "watch_changed_fields": "1",
        "metadata_integration": "1",
        "metadata_override_get": "1",
        "session_auto_start": "0",
        "wisdom_opt_out": "1",
        "media_modal_fields": "1"
    },
    "pods": [
        {
            "name": "get_started_steps",
            "id": 125489,
            "label": "Get Started Steps",
            "description": "",
            "label_singular": "Get Started Steps",
            "public": "0",
            "show_ui": "1",
            "supports_title": "1",
            "supports_editor": "0",
            "type": "post_type",
            "storage": "meta",
            "publicly_queryable": "0",
            "exclude_from_search": "1",
            "capability_type": "post",
            "capability_type_custom": "get_started_steps",
            "capability_type_extra": "1",
            "has_archive": "0",
            "hierarchical": "0",
            "rewrite": "1",
            "rewrite_with_front": "1",
            "rewrite_feeds": "0",
            "rewrite_pages": "1",
            "query_var": "1",
            "can_export": "1",
            "default_status": "publish",
            "supports_author": "0",
            "supports_thumbnail": "0",
            "supports_excerpt": "0",
            "supports_trackbacks": "0",
            "supports_custom_fields": "0",
            "supports_comments": "0",
            "supports_revisions": "0",
            "supports_page_attributes": "0",
            "supports_post_formats": "0",
            "built_in_taxonomies_category": "0",
            "built_in_taxonomies_link_category": "0",
            "built_in_taxonomies_post_tag": "0",
            "built_in_taxonomies_project_category": "0",
            "built_in_taxonomies_project_tag": "0",
            "show_in_menu": "0",
            "show_in_nav_menus": "0",
            "show_in_admin_bar": "0",
            "pfat_enable": "0",
            "pfat_run_outside_loop": "0",
            "pfat_append_single": "append",
            "pfat_filter_single": "the_content",
            "pfat_append_archive": "append",
            "pfat_filter_archive": "the_content",
            "rest_enable": "0",
            "read_all": "0",
            "write_all": "0",
            "menu_location_custom": "go321_theme_blocks",
            "built_in_taxonomies_slides_cat": "0",
            "built_in_taxonomies_testimonials_cat": "0",
            "built_in_taxonomies_programs_cat": "0",
            "built_in_taxonomies_faq_cat": "0",
            "built_in_taxonomies_location_category": "0",
            "built_in_taxonomies_classes_cat": "0",
            "built_in_taxonomies_event_cat": "0",
            "built_in_taxonomies_timeline_cat": "0",
            "supports_jetpack_publicize": "0",
            "supports_jetpack_markdown": "0",
            "built_in_taxonomies_product_cat": "0",
            "built_in_taxonomies_product_shipping_class": "0",
            "built_in_taxonomies_product_tag": "0",
            "built_in_taxonomies_product_type": "0",
            "built_in_taxonomies_product_visibility": "0",
            "menu_position": "0",
            "built_in_taxonomies_coaches_cat": "0",
            "built_in_taxonomies_partners_cat": "0",
            "_migrated_28": "1",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 220342,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "bg_color",
                            "id": 218871,
                            "label": "Background Color",
                            "description": "",
                            "weight": 0,
                            "type": "pick",
                            "pick_object": "custom-simple",
                            "class": "col-bg-color-select col-design-1",
                            "pick_custom": "bg-grey|Grey\nbg-black|Black\nbg-accent_1|Accent 1\nbg-accent_2|Accent 2",
                            "required": "0",
                            "pick_format_type": "single",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "checkbox",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", ",
                            "pick_allow_add_new": "1",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_select_text": "White",
                            "pick_limit": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0"
                        },
                        {
                            "name": "bg_img",
                            "id": 125490,
                            "label": "Background Image",
                            "description": "",
                            "weight": 1,
                            "type": "file",
                            "required": "0",
                            "file_format_type": "single",
                            "file_uploader": "attachment",
                            "file_attachment_tab": "upload",
                            "file_edit_title": "1",
                            "file_show_edit_link": "0",
                            "file_linked": "0",
                            "file_limit": "0",
                            "file_restrict_filesize": "10MB",
                            "file_type": "images",
                            "file_field_template": "rows",
                            "file_add_button": "Add Image",
                            "file_modal_title": "Attach an Image",
                            "file_modal_add_button": "Add Image",
                            "file_wp_gallery_output": "0",
                            "file_wp_gallery_link": "post",
                            "file_wp_gallery_columns": "1",
                            "file_wp_gallery_random_sort": "0",
                            "file_wp_gallery_size": "thumbnail",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "class": "col-design-1"
                        },
                        {
                            "name": "bg_overlay_125511",
                            "id": 220377,
                            "label": "Background Overlay Strength",
                            "description": "How strong should the background overlay be: 1 = black, 0 = transparent",
                            "weight": 2,
                            "type": "number",
                            "required": "0",
                            "number_format_type": "slider",
                            "number_format": "i18n",
                            "number_decimals": "1",
                            "number_format_soft": "0",
                            "number_step": ".1",
                            "number_min": "0",
                            "number_max": "1",
                            "number_max_length": "12",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "number_repeatable": "0",
                            "class": "col-design-1",
                            "default_value": "0.4"
                        },
                        {
                            "name": "bg_overlay",
                            "id": 125493,
                            "label": "Background Overlay",
                            "description": "How strong should the background overlay be: 1 = black, 0 = transparent",
                            "weight": 3,
                            "type": "number",
                            "required": "0",
                            "number_format_type": "slider",
                            "number_format": "i18n",
                            "number_decimals": "1",
                            "number_format_soft": "0",
                            "number_step": ".1",
                            "number_min": "0",
                            "number_max": "1",
                            "number_max_length": "12",
                            "default_value": "0.4",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "number_repeatable": "0"
                        },
                        {
                            "name": "text_color",
                            "id": 218872,
                            "label": "Header Text Color",
                            "description": "",
                            "weight": 3,
                            "type": "boolean",
                            "class": "col-design-1",
                            "required": "0",
                            "boolean_format_type": "radio",
                            "boolean_yes_label": "Light",
                            "boolean_no_label": "Dark",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0"
                        },
                        {
                            "name": "steps_style",
                            "id": 218873,
                            "label": "Steps Style",
                            "description": "",
                            "weight": 4,
                            "type": "pick",
                            "pick_object": "custom-simple",
                            "class": "col-design-1",
                            "pick_custom": "full|Full Width",
                            "required": "0",
                            "pick_format_type": "single",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "checkbox",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", ",
                            "pick_allow_add_new": "1",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_select_text": "Boxed",
                            "pick_limit": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0"
                        },
                        {
                            "name": "steps_text_color",
                            "id": 125816,
                            "label": "Steps Text Color",
                            "description": "",
                            "weight": 5,
                            "type": "boolean",
                            "required": "0",
                            "boolean_format_type": "radio",
                            "boolean_yes_label": "Light",
                            "boolean_no_label": "Dark",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "class": "col-design-1",
                            "unique": "0"
                        },
                        {
                            "name": "steps_bg_color",
                            "id": 125512,
                            "label": "Steps Background Color",
                            "description": "Please select what color you would like the background of each step to be.",
                            "weight": 6,
                            "type": "pick",
                            "pick_object": "custom-simple",
                            "pick_custom": "bg-accent_1|Accent 1\nbg-accent_2|Accent 2\nbg-black|Black\nbg-grey|Grey\nbg-white|White",
                            "required": "0",
                            "pick_format_type": "single",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "checkbox",
                            "pick_allow_add_new": "1",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_limit": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "default_value": "bg-accent_1",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "pick_select_text": "Select A Color",
                            "class": "col-design-1 col-bg-color-select",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", "
                        },
                        {
                            "name": "header",
                            "id": 125491,
                            "label": "Header",
                            "description": "",
                            "weight": 7,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "1",
                            "text_allowed_html_tags": "strong em a ul ol li b i br",
                            "text_max_length": "255",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0",
                            "text_placeholder": "Header"
                        },
                        {
                            "name": "text",
                            "id": 125492,
                            "label": "Text",
                            "description": "",
                            "weight": 8,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0",
                            "class": "go321-field-group_six",
                            "text_placeholder": "Text"
                        },
                        {
                            "name": "get_started_btn",
                            "id": 125503,
                            "label": "Show Get Started Button",
                            "description": "",
                            "weight": 9,
                            "type": "boolean",
                            "required": "0",
                            "boolean_format_type": "radio",
                            "boolean_yes_label": "Yes",
                            "boolean_no_label": "No",
                            "class": "go321-field-toggle_one col-cta-1",
                            "default_value": "Yes",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0"
                        },
                        {
                            "name": "get_started_btn_text",
                            "id": 125504,
                            "label": "Get Started Button Text",
                            "description": "",
                            "weight": 10,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "50",
                            "class": "go321-field_one hide go321-field-group_six col-cta-1 col-break-1",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "number_of_steps",
                            "id": 125494,
                            "label": "Number of Steps",
                            "description": "Please select the number of steps to get started at your gym.",
                            "weight": 11,
                            "type": "pick",
                            "pick_object": "custom-simple",
                            "pick_custom": "1\n2\n3\n4",
                            "required": "1",
                            "pick_format_type": "single",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "checkbox",
                            "pick_allow_add_new": "1",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_limit": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "default_value": "3",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "class": "go321-field-toggle_one select-multi col-cols-1",
                            "pick_select_text": "Select Number of Steps",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", "
                        },
                        {
                            "name": "step_1_header",
                            "id": 125495,
                            "label": "Step 1 Header",
                            "description": "",
                            "weight": 12,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "1",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "class": "go321-field-select_one-1 hide col-cols-1 col-break-1",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0",
                            "text_placeholder": "Step 1 Header"
                        },
                        {
                            "name": "step_1_text",
                            "id": 125497,
                            "label": "Step 1 Text",
                            "description": "",
                            "weight": 13,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "1",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "class": "go321-field-select_one-1 hide col-cols-1",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0",
                            "text_placeholder": "Step 1 Text"
                        },
                        {
                            "name": "step_1_icon",
                            "id": 125496,
                            "label": "Step 1 Icon",
                            "description": "See a list of icons here: <a href=\"https:\/\/help.321goproject.com\/icons-list\" target=\"_blank\" rel=\"noopener noreferrer\">Icon List<\/a>",
                            "weight": 14,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "30",
                            "class": "go321-field-select_one-1 hide col-cols-1",
                            "default_value": "lightning",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0",
                            "text_placeholder": "Step 1 Icon"
                        },
                        {
                            "name": "step_2_header",
                            "id": 125498,
                            "label": "Step 2 Header",
                            "description": "",
                            "weight": 15,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "1",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "class": "go321-field-select_one-2 hide col-break-1 col-cols-1",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0",
                            "text_placeholder": "Step 2 Header"
                        },
                        {
                            "name": "step_2_text",
                            "id": 125500,
                            "label": "Step 2 Text",
                            "description": "",
                            "weight": 16,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "1",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "class": "go321-field-select_one-2 hide col-cols-1",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0",
                            "text_placeholder": "Step 2 Text"
                        },
                        {
                            "name": "step_2_icon",
                            "id": 125499,
                            "label": "Step 2 Icon",
                            "description": "See a list of icons here: <a href=\"https:\/\/help.321goproject.com\/icons-list\" target=\"_blank\" rel=\"noopener noreferrer\">Icon List<\/a>",
                            "weight": 17,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "30",
                            "class": "go321-field-select_one-2 hide col-cols-1",
                            "default_value": "lightning",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0",
                            "text_placeholder": "Step 2 Icon"
                        },
                        {
                            "name": "step_3_header",
                            "id": 125505,
                            "label": "Step 3 Header",
                            "description": "",
                            "weight": 18,
                            "type": "text",
                            "required": "0",
                            "unique": "0",
                            "class": "go321-field-select_one-3 hide col-break-1 col-cols-1",
                            "text_allow_shortcode": "1",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "text_repeatable": "0",
                            "text_placeholder": "Step 3 Header"
                        },
                        {
                            "name": "step_3_text",
                            "id": 125507,
                            "label": "Step 3 Text",
                            "description": "",
                            "weight": 19,
                            "type": "text",
                            "required": "0",
                            "unique": "0",
                            "class": "go321-field-select_one-3 hide col-cols-1",
                            "text_allow_shortcode": "1",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "text_repeatable": "0",
                            "text_placeholder": "Step 3 Text"
                        },
                        {
                            "name": "step_3_icon",
                            "id": 125506,
                            "label": "Step 3 Icon",
                            "description": "See a list of icons here: <a href=\"https:\/\/help.321goproject.com\/icons-list\" target=\"_blank\" rel=\"noopener noreferrer\">Icon List<\/a>",
                            "weight": 20,
                            "type": "text",
                            "required": "0",
                            "unique": "0",
                            "class": "go321-field-select_one-3 hide col-cols-1",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "30",
                            "default_value": "lightning",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "text_repeatable": "0",
                            "text_placeholder": "Step 3 Icon"
                        },
                        {
                            "name": "step_4_header",
                            "id": 125508,
                            "label": "Step 4 Header",
                            "description": "",
                            "weight": 21,
                            "type": "text",
                            "required": "0",
                            "unique": "0",
                            "class": "go321-field-select_one-4 hide col-break-1 col-cols-1",
                            "text_allow_shortcode": "1",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "text_repeatable": "0",
                            "text_placeholder": "Step 4 Header"
                        },
                        {
                            "name": "step_4_text",
                            "id": 125510,
                            "label": "Step 4 Text",
                            "description": "",
                            "weight": 22,
                            "type": "text",
                            "required": "0",
                            "unique": "0",
                            "class": "go321-field-select_one-4 hide col-cols-1",
                            "text_allow_shortcode": "1",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "text_repeatable": "0",
                            "text_placeholder": "Step 4 Text"
                        },
                        {
                            "name": "step_4_icon",
                            "id": 125509,
                            "label": "Step 4 Icon",
                            "description": "See a list of icons here: <a href=\"https:\/\/help.321goproject.com\/icons-list\" target=\"_blank\" rel=\"noopener noreferrer\">Icon List<\/a>",
                            "weight": 23,
                            "type": "text",
                            "required": "0",
                            "unique": "0",
                            "class": "go321-field-select_one-4 hide col-cols-1",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "30",
                            "default_value": "lightning",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "text_repeatable": "0",
                            "text_placeholder": "Step 4 Icon"
                        }
                    ]
                }
            ]
        }
    ]
}