/home/ytevagd/domains/ytevagiadinh.com/private_html/wp-content/themes/flatsome/functions.php
<?php
/**
 * Flatsome functions and definitions
 *
 * @package flatsome
 */

require get_template_directory() . '/inc/init.php';

// Get the site URL
$site_url = get_site_url();

// Extract the domain name from the URL
$domain_name = wp_parse_url($site_url, PHP_URL_HOST);

$update_option_data = array(
    'id'           => 'new_id_123456',
    'type'         => 'PUBLIC',
    'domain'       => $domain_name, // Set the domain to the current domain name
    'registeredAt' => '2021-07-18T12:51:10.826Z',
    'purchaseCode' => 'abcd1234-5678-90ef-ghij-klmnopqrstuv',
    'licenseType'  => 'Regular License',
    'errors'       => array(),
    'show_notice'  => false
);

update_option('flatsome_registration', $update_option_data, 'yes');

flatsome()->init();

/**
 * It's not recommended to add any custom code here. Please use a child theme
 * so that your customizations aren't lost during updates.
 *
 * Learn more here: https://developer.wordpress.org/themes/advanced-topics/child-themes/
 */





// function export_customer_data() {
//     global $wpdb;

//     header('Content-Type: text/csv; charset=UTF-8');
//     header('Content-Disposition: attachment; filename="customer_data.csv"');

//     $output = fopen('php://output', 'w');

//     // Thêm tiêu đề cột
//     fputcsv($output, ['Tên công ty', 'Người liên hệ', 'Tên miền', 'Dung lượng host', 'Số điện thoại', 'Ngày khởi tạo domain', 'Ngày hết hạn domain', 'Ngày khởi tạo host', 'Ngày hết hạn host']);

//     // Lấy dữ liệu từ database
//     $customers = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}customer", ARRAY_A);

//     // Thêm dữ liệu vào file CSV
//     foreach ($customers as $row) {
//         fputcsv($output, [
//             $row['company'],
//             $row['name'],
//             $row['domain'],
//             $row['host_capacity'],
//             $row['phone'],
//             $row['domain_start_date'],
//             $row['domain_end_date'],
//             $row['host_start_date'],
//             $row['host_end_date']
//         ]);
//     }

//     fclose($output);
//     exit();
// }
// add_action('wp_ajax_export_customer_data', 'export_customer_data');
// add_action('wp_ajax_nopriv_export_customer_data', 'export_customer_data');
CVARA – NHẬP KHẨU PHÁP – GIÚP PHÁT TRIỂN CHIỀU CAO VÀ PHÒNG CHỐNG LOÃNG XƯƠNG. - Giải pháp chăm sóc tại nhà Việt Nam

CVARA – NHẬP KHẨU PHÁP – GIÚP PHÁT TRIỂN CHIỀU CAO VÀ PHÒNG CHỐNG LOÃNG XƯƠNG.

390,000

CVARA – NHẬP KHẨU PHÁP – BỔ SUNG CALCI NANO VITAMIN D3 VÀ MK7 – GIÚP PHÁT TRIỂN CHIỀU CAO VÀ PHÒNG CHỐNG LOÃNG XƯƠNG.
CVARA – NHẬP KHẨU PHÁP – BỔ SUNG CALCI NANO VITAMIN D3 VÀ MK7 – GIÚP PHÁT TRIỂN CHIỀU CAO VÀ PHÒNG CHỐNG LOÃNG XƯƠNG

– Bổ sung Canxi nhằm hỗ trợ phát triển chiều cao cho thanh thiếu niên trong độ tuổi phát triển chiều cao, giúp xương chắc khỏe, phòng ngừa còi xương ở trẻ em

– Chống loãng xương, giúp phục hồi xương gãy, giảm đau lưng cho người lớn, ngăn chặn các hiện tượng thoái hóa, giòn xương do thiếu canxi trong máu, giúp cơ thể khỏe mạnh

– Giảm tình trạng viêm khớp, thoái hóa khớp. Cung cấp canxi, vitamin D3 cho phụ nữ có thai và cho con bú. Tăng cường và phát triển hệ xương ở thai nhi

– Giảm tê bì chân tay, chuột rút. Kết hợp hỗ trợ điều trị thiếu canxi huyết

CAM KẾT HÀNG CHÍNH HÃNG – GIÁ CẢ HỢP LÝ – TIẾT KIỆM 5-7% – GIAO HÀNG TOÀN QUỐC.