public function pluginContactForm($settings)
    {
        if (empty($settings)) {
            return;
        }

        $available = [
            'enqueue_styles',
        ];

        // Special case
        if (is_bool($settings) && $settings) {
            $settings = $available;
        }

        foreach ($settings as $key) {
            $key = strtolower($key);

            if (!in_array($key, $available)) {
                continue;
            }

            if ('enqueue_styles' === $key && !OL_ZEUS_ISADMIN) {
                add_action('wp_enqueue_scripts', function () {
                    wp_localize_script('contact-form-7', 'wpcf7', [
                        'apiSettings' => [
                            'root'      => esc_url_raw(rest_url('contact-form-7/v1')),
                            'namespace' => 'contact-form-7/v1',
                        ],
                        'jqueryUi'    => 1,
                    ]);
                }, 10);
                continue;
            }
        }
    }
public function pluginContactForm($settings)
    {
        if (empty($settings)) {
            return;
        }

        $available = [
            'enqueue_styles',
        ];

        // Special case
        if (is_bool($settings) && $settings) {
            $settings = $available;
        }

        foreach ($settings as $key) {
            $key = strtolower($key);

            if (!in_array($key, $available)) {
                continue;
            }

            if ('enqueue_styles' === $key && !OL_ZEUS_ISADMIN) {
                add_action('wp_enqueue_scripts', function () {
                    wp_localize_script('contact-form-7', 'wpcf7', [
                        'apiSettings' => [
                            'root'      => esc_url_raw(rest_url('contact-form-7/v1')),
                            'namespace' => 'contact-form-7/v1',
                        ],
                        'jqueryUi'    => 1,
                    ]);
                }, 10);
                continue;
            }
        }
    }
public function pluginContactForm ( $ settings ) { if ( empty ( $ settings ) ) { return ; } $ available = [ 'enqueue_styles' , ] ; // Special case if ( is_bool ( $ settings ) && $ settings ) { $ settings = $ available ; } foreach ( $ settings as $ key ) { $ key = strtolower ( $ key ) ; if ( ! in_array ( $ key , $ available ) ) { continue ; } if ( 'enqueue_styles' === $ key && ! OL_ZEUS_ISADMIN ) { add_action ( 'wp_enqueue_scripts' , function ( ) { wp_localize_script ( 'contact-form-7' , 'wpcf7' , [ 'apiSettings' => [ 'root' => esc_url_raw ( rest_url ( 'contact-form-7/v1' ) ) , 'namespace' => 'contact-form-7/v1' , ] , 'jqueryUi' => 1 , ] ) ; } , 10 ) ; continue ; } } }
Clean Contact Form plugin functionalities.

@param array $settings
Clean Contact Form plugin functionalities .