/** * This returns the original Charitable_Extension_Boilerplate object. * * Use this whenever you want to get an instance of the class. There is no * reason to instantiate a new object, though you can do so if you're stubborn :) * * @return Charitable_Extension_Boilerplate * @since 1.0.0 */ function charitable_extension_boilerplate() { return Charitable_Extension_Boilerplate::get_instance(); }
/** * Run the startup sequence on the charitable_start hook. * * 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->load_dependencies(); $this->maybe_start_admin(); $this->maybe_start_public(); $this->setup_licensing(); $this->setup_i18n(); // Hook in here to do something when the plugin is first loaded. do_action('charitable_extension_boilerplate_start', $this); }