?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/demo2/wp-content/plugins/divi-contact-form-helper/d5/server/Frontend/ContactForm/



?? Go up: /home/webdevt/www/demo2/wp-content/plugins/divi-contact-form-helper/d5/server/Frontend

?? Viewing: ContactFormLegacyAttributes.php

<?php

namespace KS_PAC_DCFH\Frontend\ContactForm;

if (!defined('ABSPATH')) {
    exit;
}

class ContactFormLegacyAttributes
{
    public function load(): void
    {
        add_filter('divi.conversion.legacyAttributeNames', [$this, 'add_legacy_attribute_names'], 999);
    }

    public function add_legacy_attribute_names(array $attributes): array
    {
        $attributes_to_skip = [
            'html_divider_width',
            'html_divider_height',
            'html_divider_color',
            'html_divider_margin',
            'html_divider_padding',
            'html_divider_shadow',
            'html_heading_margin',
            'html_heading_padding',
            'html_heading_background',
            'html_heading_border',
            'html_heading_border_color',
            'html_heading_border_width',
            'html_heading_border_style',
            'html_paragraph_margin',
            'html_paragraph_padding',
            'html_paragraph_background',
            'html_paragraph_border',
            'html_paragraph_border_color',
            'html_paragraph_border_width',
            'html_paragraph_border_style',
            'html_image_alignment',
            //'datepicker_current_date_color',
        ];

        return array_merge($attributes, $attributes_to_skip);
    }
}


??

??