Advertisement
Fany_VanDaal

Přidání variabilního symbolu na Thank You page a do emailu

May 19th, 2019
1,013
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None
  1. add_filter( 'woocommerce_bacs_account_fields', 'custom_bacs_account_field', 10, 2);
  2. function custom_bacs_account_field( $account_fields, $order_id ) {
  3. $order = wc_get_order( $order_id );
  4. $account_fields['variable_symbol' ] = array(
  5. 'label' => 'Variabilní symbol',
  6. 'value' => $order->get_order_number()
  7. );
  8. return $account_fields;
  9. }
Advertisement
RAW Paste Data Copied
Advertisement