我有以下适用于第一个数组但不适用于第二个数组的内容。如何将两者结合使用sendinblue_runner($data)一次?
// Fire the function to add to the imp_customer_log table
$data = array(
'id' => '',
'customer_id' => $data['user_id'],
'event' => 'first_name',
'data' => $data['account_first_name'],
'updated_in_sib' => '0',
);
sendinblue_runner($data);
// Fire the function to add to the imp_customer_log table
$data = array(
'id' => '',
'customer_id' => $data['user_id'],
'event' => 'last_name',
'data' => $data['account_last_name'],
'updated_in_sib' => '0',
);
sendinblue_runner($data);
然后我有我的跑步者:
// Runner to grab data from all the functions that affect SiB contact fields
function sendinblue_runner($data) {
global $wpdb;
$table = "imp_customer_log";
$wpdb->insert( $table, $data );
}
德玛西亚99
慕哥6287543