EDD_ORDERREFUNDED::define_trigger()

Define and register the trigger by pushing it into the Automator object.


Return Return

(Uncanny_Automatorvoid.)


Source Source

File: src/integrations/edd/triggers/edd-orderrefunded.php

	public function define_trigger() {
		$trigger = array(
			'author'              => Automator()->get_author_name( $this->trigger_code ),
			'support_link'        => Automator()->get_author_support_link( $this->trigger_code, 'integration/easy-digital-downloads/' ),
			'integration'         => self::$integration,
			'code'                => $this->trigger_code,
			/* translators: Logged-in trigger - Easy Digital Downloads */
			'sentence'            => sprintf( esc_attr__( "A user's Stripe payment is refunded", 'uncanny-automator' ) ),
			/* translators: Logged-in trigger - Easy Digital Downloads */
			'select_option_name'  => esc_attr__( "A user's Stripe payment is refunded", 'uncanny-automator' ),
			'action'              => 'edds_payment_refunded',
			'priority'            => 10,
			'accepted_args'       => 1,
			'validation_function' => array( $this, 'edd_order_refunded' ),
			'options'             => [],
		);
		Automator()->register->trigger( $trigger );
	}