Tribe__Tickets_Plus__Commerce__WooCommerce__Main::set_attendee_optout_choice( int $item_id, array $item )

After placing the Order make sure we store the users option to show the Attendee Optout.

This method should only be used if a version of WooCommerce lower than 3.0 is in use.


Parameters

$item_id

(int) (Required)

$item

(array) (Required)


Top ↑

Source

File: src/Tribe/Commerce/WooCommerce/Main.php

	public function set_attendee_optout_choice( $item_id, $item ) {
		// If this option is not here just drop
		if ( ! isset( $item['attendee_optout'] ) ) {
			return;
		}

		wc_add_order_item_meta( $item_id, $this->attendee_optout_key, $item['attendee_optout'] );
	}