Woocommerce_Helpers::get_trigger_condition_labels()

Fetch labels for trigger conditions.


Return Return

(array)


Source Source

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

	public function get_trigger_condition_labels() {
		/**
		 * Filters WooCommerce Integrations' trigger conditions.
		 *
		 * @param array $trigger_conditions An array of key-value pairs of action hook handle and human readable label.
		 */
		return apply_filters(
			'uap_wc_trigger_conditions',
			array(
				'woocommerce_payment_complete'       => _x( 'pays for', 'WooCommerce', 'uncanny-automator' ),
				'woocommerce_order_status_completed' => _x( 'completes', 'WooCommerce', 'uncanny-automator' ),
				'woocommerce_thankyou'               => _x( 'lands on a thank you page for', 'WooCommerce', 'uncanny-automator' ),
			)
		);
	}


Top ↑

Changelog Changelog

Changelog
Version Description
2.10 Introduced.