getPreviewPost( $postId ); $postId = $previewPost->ID; } $this->render( $block, $content, $postId ); } protected function render( $block, $content, $postId ) { print 'MENU'; } }