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); }
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; }
public static function reset_current() { self::$current = null; }