# give/4.18.0/src/ThirdPartySupport/Elementor/Settings/RegisterSettings.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 58 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/ThirdPartySupport/Elementor/Settings/RegisterSettings.php
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/ThirdPartySupport/Elementor/Settings/RegisterSettings.php
- Modified: 2025-08-20T14:13:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/src/ThirdPartySupport/Elementor/Settings/RegisterSettings.php#L10-L20`.

```php
<?php

namespace Give\ThirdPartySupport\Elementor\Settings;

/**
 * @since 4.7.0
 */
class RegisterSettings
{
    /**
     * @since 4.7.0
     */
    public function __invoke(array $settings): array
    {
        if ('elementor' !== give_get_current_setting_section()) {
            return $settings;
        }

        return $this->getSettings();
    }

    /**
     * @since 4.7.0
     */
    protected function getSettings(): array
    {
        return [
            [
                'id' => 'give_title_settings_elementor_1',
                'type' => 'title',
            ],
            $this->getElementorSettings(),
            [
                'id' => 'give_title_settings_elementor_1',
                'type' => 'sectionend',
            ],
        ];
    }

    /**
     * @since 4.7.0
     */
    public function getElementorSettings(): array
    {
        return [
            'name' => __('Enable Elementor Legacy Widgets', 'give'),
            'desc' => __('If enabled, this option will add legacy widgets to elementor that were previously available in the GiveWP Elementor Widgets plugin.', 'give'),
            'id' => 'givewp_elementor_legacy_widgets_enabled',
            'type' => 'radio_inline',
            'default' => 'disabled',
            'options' => [
                'enabled' => __('Enabled', 'give'),
                'disabled' => __('Disabled', 'give'),
            ],
        ];
    }
}

```
