Example.php 478 B

123456789101112131415161718
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit;
  2. final class NF_Admin_Metaboxes_Example extends NF_Abstracts_SubmissionMetabox
  3. {
  4. public function __construct()
  5. {
  6. parent::__construct();
  7. // $this->_title = __( 'Example Metabox', 'ninja-forms' );
  8. }
  9. public function render_metabox( $post, $metabox )
  10. {
  11. $data = $this->sub->get_field_values();
  12. Ninja_Forms()->template( 'admin-metabox-submission-example.php', compact( 'data' ) );
  13. }
  14. }