Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public static function reset_current()
 {
     self::$current = null;
 }