UNCANNYCEUS_EARNSCEUS::__construct()
Set up Automator trigger constructor.
Source Source
File: src/integrations/uncanny-ceus/triggers/uncannyceus-earnsceus.php
public function __construct() { // The hook is only available on or after CEU version 3.0.7 $version = \uncanny_ceu\Utilities::get_version(); if ( version_compare( $version, '3.0.6', '>' ) ) { // Ths trigger is running through a crob job .. We need to let is pass through cron checks add_filter( 'uap_run_automator_actions', [ $this, 'maybe_allow_triggers_to_actionify', 10, 2 ] ); $this->trigger_code = 'EARNSCEUS'; $this->trigger_meta = 'AMOUNTSCEUS'; $this->define_trigger(); } }
Expand full source code Collapse full source code View on Github