init_metabox(); } } public function init_metabox() { add_action( 'faqs_add_form_fields', array( $this, 'render_preview_box' ), 10, 2 ); add_action( 'faqs_edit_form_fields', array( $this, 'render_preview_box' ), 10, 2 ); } public function render_preview_box( $post ) { ?>