Ejemplo n.º 1
0
 /**
  * Create singleton object of Rtbiz
  *
  * @since     1.0.0
  * @access    private
  * @return    string    The name of the plugin.
  */
 public static function instance()
 {
     if (!isset(self::$instance) && !self::$instance instanceof Rtbiz) {
         self::_p2p_load();
         self::$instance = new Rtbiz();
         add_action('plugins_loaded', array(self::$instance, 'init_plugin'));
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
/**
 * Begins execution of the plugin.
 *
 * Since everything within the plugin is registered via hooks,
 * then kicking off the plugin from this point in the file does
 * not affect the page life cycle.
 *
 * @since    1.0.0
 */
function run_rtbiz()
{
    $plugin = Rtbiz::instance();
}