Example #1
0
 /**
  * Run the startup sequence.
  *
  * This is only ever executed once.
  *
  * @return  void
  * @access  public
  * @since   1.0.0
  */
 public function start()
 {
     // If we've already started (i.e. run this function once before), do not pass go.
     if ($this->started()) {
         return;
     }
     // Set static instance
     self::$instance = $this;
     // Factory to create new donation instances
     $this->donation_factory = new Charitable_Donation_Factory();
     $this->maybe_start_ajax();
     $this->attach_hooks_and_filters();
     $this->maybe_start_admin();
     $this->maybe_start_public();
     Charitable_Addons::load($this);
 }
Example #2
0
 /**
  * Run the startup sequence. 
  *
  * This is only ever executed once.  
  * 
  * @return  void
  * @access  public
  * @since   1.0.0
  */
 public function start()
 {
     // If we've already started (i.e. run this function once before), do not pass go.
     if ($this->started()) {
         return;
     }
     // Set static instance
     self::$instance = $this;
     $this->maybe_start_ajax();
     $this->maybe_upgrade();
     $this->attach_hooks_and_filters();
     $this->maybe_start_admin();
     $this->maybe_start_public();
     Charitable_Addons::load($this);
 }