Elementor\Tracker::check_for_settings_optin PHP Метод

check_for_settings_optin() публичный статический Метод

public static check_for_settings_optin ( $new_value )
    public static function check_for_settings_optin($new_value)
    {
        $old_value = get_option('elementor_allow_tracking', 'no');
        if ($old_value !== $new_value && 'yes' === $new_value) {
            self::send_tracking_data(true);
        }
        if (empty($new_value)) {
            $new_value = 'no';
        }
        return $new_value;
    }