ldc-espri-restauration/wp-content/plugins/ninja-forms/includes/Admin/Metaboxes/Example.php

18 lines
486 B
PHP
Raw Normal View History

2018-12-03 13:56:48 +01:00
<?php if ( ! defined( 'ABSPATH' ) ) exit;
final class NF_Admin_Metaboxes_Example extends NF_Abstracts_SubmissionMetabox
{
public function __construct()
{
parent::__construct();
2021-08-04 17:09:29 +02:00
// $this->_title = esc_html__( 'Example Metabox', 'ninja-forms' );
2018-12-03 13:56:48 +01:00
}
public function render_metabox( $post, $metabox )
{
$data = $this->sub->get_field_values();
Ninja_Forms()->template( 'admin-metabox-submission-example.php', compact( 'data' ) );
}
}