Công cụ thành viên

Công cụ trang web


nukeviet5:codex:hooks-reference:get_email_content_before_send

Khác biệt

Đây là những khác biệt giữa hai phiên bản của trang.

Liên kết đến bản xem so sánh này

Phiên bản sau
Phiên bản trước
nukeviet5:codex:hooks-reference:get_email_content_before_send [2019/08/09 10:55] – được tạo ra hoaquynhtim99nukeviet5:codex:hooks-reference:get_email_content_before_send [2019/08/09 14:05] (hiện tại) – [Ví dụ viết plugin] hoaquynhtim99
Dòng 6: Dòng 6:
  
 ^ STT ^ Tên biến        ^ Kiểu dữ liệu    ^ Ghi chú                              ^ ^ STT ^ Tên biến        ^ Kiểu dữ liệu    ^ Ghi chú                              ^
-| 0   | $email_data     | array           | Dữ liệu trong CSDL của mẫu email     | +| 0   | $email_content  | string          | Nội dung email truyền vào            | 
-  | $row            | array           | Dữ liệu truyền vào do người dùng đặt |+| 1   | $email_data     | array           | Dữ liệu trong CSDL của mẫu email     | 
 +  | $row            | array           | Dữ liệu truyền vào do người dùng đặt |
  
 ==== Dữ liệu trả về ==== ==== Dữ liệu trả về ====
Dòng 17: Dòng 18:
 <code php> <code php>
 nv_add_hook($module_name, 'get_email_content_before_send', $priority, function($vars) { nv_add_hook($module_name, 'get_email_content_before_send', $priority, function($vars) {
-    $email_data = $vars[0]; +    $email_content = $vars[0]; 
-    $row = $vars[1];+    $email_data = $vars[1]; 
 +    $row = $vars[2];
  
     // Thực hiện code hook tại đây...     // Thực hiện code hook tại đây...
nukeviet5/codex/hooks-reference/get_email_content_before_send.txt · Sửa đổi lần cuối: 2019/08/09 14:05 bởi hoaquynhtim99