ADVANCED_COUPONS_USER_RECEIVES_CREDIT::load_options()

Load options method


Return Return

(array)


Source Source

File: src/integrations/advanced-coupons/triggers/advanced-coupons-user-receives-credit.php

	public function load_options() {

		Automator()->helpers->recipe->advanced_coupons->options->load_options = true;

		$options = Automator()->utilities->keep_order_of_options(
			array(
				'options' => array(
					Automator()->helpers->recipe->advanced_coupons->get_options_for_credit( __( 'Condition', 'uncanny-automator' ), $this->trigger_meta, array( 'uo_include_any' => false ) ),
					Automator()->helpers->recipe->field->text(
						array(
							'option_code' => 'ACFWC_AMOUNT',
							'label'       => __( 'Amount', 'uncanny-automator' ),
							'token_name'  => __( 'Store credit spent', 'uncanny-automator' ),
							'input_type'  => 'float',
							'tokens'      => false,
						)
					),
				),
			)
		);

		return $options;
	}