Woocommerce_Helpers::get_woocommerce_trigger_conditions( string $code = 'TRIGGERCOND' )


Parameters Parameters

$code

(Optional)

Default value: 'TRIGGERCOND'


Top ↑

Return Return

(mixed|void)


Source Source

File: src/integrations/woocommerce/helpers/woocommerce-helpers.php

	public function get_woocommerce_trigger_conditions( $code = 'TRIGGERCOND' ) {
		$options = array(
			'option_code' => $code,
			/* translators: Noun */
			'label'       => esc_attr__( 'Trigger condition', 'uncanny-automator' ),
			'input_type'  => 'select',
			'required'    => true,
			'options'     => $this->get_trigger_condition_labels(),
		);

		return apply_filters( 'uap_option_woocommerce_trigger_conditions', $options );
	}