/**
  * Returns the instance.
  *
  * @since  1.0.0
  * @return object
  */
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Ejemplo n.º 2
0
 /**
  * On plugin activation.
  *
  * @since 1.0.0
  */
 function activation()
 {
     Cherry_Testimonials_Registration::register_post_type();
     Cherry_Testimonials_Registration::register_taxonomy();
     flush_rewrite_rules();
 }