Visszaküldés rögzítése
Köszönjük, kérésedet rögzítettük. Visszaküldéskor kérünk, ne felejtsd el a kitöltött nyomtatványt is a dobozba csomagolni.
/*Template name:Visszakuldes rögzítése*/ if(isset($_GET['ui'])){ if(get_current_user_id() != $_GET['ui'])exit; $order = wc_get_order( $_GET['oi'] ); $time = current_time('mysql'); if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } $itemurl = get_the_permalink($_GET['pid']); $data = array( 'comment_post_ID' => get_the_ID(), 'comment_author' => $order->get_formatted_billing_full_name(), 'comment_author_email' => $order->get_billing_email(), 'comment_author_url' => $order->get_billing_phone(), 'comment_content' => $itemurl, 'comment_type' => '', 'comment_parent' => 0, 'user_id' => get_current_user_id(), 'comment_author_IP' => $ip, 'comment_agent' => $_SERVER['HTTP_USER_AGENT'], 'comment_date' => $time, 'comment_approved' => 0, ); wp_insert_comment($data); } get_header(); ?>
Köszönjük, kérésedet rögzítettük. Visszaküldéskor kérünk, ne felejtsd el a kitöltött nyomtatványt is a dobozba csomagolni.