예제 #1
0
 public static function get_instance($post)
 {
     $post = get_post($post);
     if (!$post || self::post_type != get_post_type($post)) {
         return false;
     }
     return self::$current = new self($post);
 }
예제 #2
0
 public static function get_instance($post)
 {
     $post = get_post($post);
     if (!$post || self::post_type != get_post_type($post)) {
         return false;
     }
     self::$current = $contact_form = new self($post);
     return $contact_form;
 }
예제 #3
0
 public static function reset_current()
 {
     self::$current = null;
 }