public function __construct($post_type = 'post') { parent::__construct($post_type); add_action('wp_loaded', array($this, 'bless_query_var')); add_action('template_redirect', array($this, 'render_preview_page')); add_filter('preview_post_link', array($this, 'preview_link')); }