public function __construct($post_id)
 {
     self::$post = get_post($post_id);
     $this->post_title = self::$post->post_title;
     $this->javo_directory_meta = @unserialize(get_post_meta($post_id, 'directory_meta', true));
     add_filter('javo_offer_brand_tag', array('javo_get_meta', 'javo_offer_brand_tag_callback'), 10, 2);
 }
 public function __construct($post_id)
 {
     if (null === (self::$post = get_post($post_id))) {
         $tmp = new stdClass();
         $tmp->post_title = __("Deleted Post.", 'javo_fr');
         $tmp->post_id = 0;
         self::$post = $tmp;
     }
     $this->post_title = self::$post->post_title;
     $this->javo_directory_meta = @unserialize(get_post_meta($post_id, 'directory_meta', true));
     add_filter('javo_offer_brand_tag', array('javo_get_meta', 'javo_offer_brand_tag_callback'), 10, 2);
 }