WC_PURCHPROD_DEP::load_options()


Return Return

(array)


Source Source

File: src/integrations/woocommerce/triggers/wc-purchprod-dep.php

	public function load_options() {
		Automator()->helpers->recipe->woocommerce->options->load_options = true;

		$options = Automator()->helpers->recipe->woocommerce->options->all_wc_products( esc_attr__( 'Product', 'uncanny-automator' ) );

		$options['options'] = array( '-1' => esc_attr__( 'Any product', 'uncanny-automator' ) ) + $options['options'];
		$options_array      = array(
			'options' => array(
				Automator()->helpers->recipe->options->number_of_times(),
				$options,
			),
		);

		return Automator()->utilities->keep_order_of_options( $options_array );
	}