Guest User

Untitled

a guest
Sep 25th, 2020
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. add_action( 'woocommerce_email_before_order_table', 'link_for_form_customer_email', 20, 4 );
  2. function link_for_form_customer_email( $order, $sent_to_admin, $plain_text, $email ) {
  3. if ( $email->id == 'customer_processing_order' )
  4. echo 'Заповніть анкету за посиланням: ';
  5. if (get_field('link_for_form', $order->id)) {
  6. echo get_field('link_for_form', $order->id);
  7. }
  8. echo '(потрібно вказати Payment ID)';
  9. }
Advertisement
Add Comment
Please, Sign In to add comment