public function pre_init() { parent::pre_init(); // Intercepting callback requests add_action('parse_request', array($this, 'maybe_process_callback')); if ($this->payment_method_is_overridden('check_status')) { $this->setup_cron(); } }
public function pre_init() { add_filter('gform_export_form', array($this, 'filter_gform_export_form')); add_action('gform_forms_post_import', array($this, 'action_gform_forms_post_import')); parent::pre_init(); add_filter('cron_schedules', array($this, 'filter_cron_schedule')); if (!wp_next_scheduled('gravityflow_cron')) { wp_schedule_event(time(), 'fifteen_minutes', 'gravityflow_cron'); } add_action('gravityflow_cron', array($this, 'cron')); add_action('wp', array($this, 'filter_wp')); }