WC_SHIPSTATION_SHIPPED::define_trigger()
Define and register the trigger by pushing it into the Automator object
Source Source
File: src/integrations/woocommerce/triggers/wc-shipstation-shipped.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/woocommerce-shipstation/' ), 'integration' => self::$integration, 'code' => $this->trigger_code, 'trigger_meta' => $this->trigger_code, /* translators: Logged-in trigger - WooCommerce */ 'sentence' => esc_attr__( 'An order is shipped', 'uncanny-automator' ), /* translators: Logged-in trigger - WooCommerce */ 'select_option_name' => esc_attr__( 'An order is shipped', 'uncanny-automator' ), 'action' => 'woocommerce_shipstation_shipnotify', 'priority' => 99, 'accepted_args' => 2, 'validation_function' => array( $this, 'shipping_completed' ), 'options' => array(), ); Automator()->register->trigger( $trigger ); return; }
Expand full source code Collapse full source code View on Github