nukeviet5:codex:hooks-reference:get_email_data_before_fetch_test
get_email_data_before_fetch_test
Dùng để hiệu chỉnh biến $email_data
trước khi đưa vào Smarty xử lý tiêu đề, nội dung để gửi email test.
Tham số
STT | Tên biến | Kiểu dữ liệu | Ghi chú |
---|---|---|---|
0 | $emailid | ||
1 | $email_data | ||
2 | $merge_fields | ||
3 | $field_data |
Dữ liệu trả về
Biến $email_data
Ví dụ viết plugin
nv_add_hook($module_name, 'get_email_data_before_fetch_test', $priority, function($vars) { $emailid = $vars[0]; $email_data = $vars[1]; $merge_fields = $vars[2]; $field_data = $vars[3]; // Thực hiện code hook tại đây... return $email_data; });
nukeviet5/codex/hooks-reference/get_email_data_before_fetch_test.txt · Sửa đổi lần cuối: 2020/04/24 14:40 bởi hoaquynhtim99