<?php
defined( 'ABSPATH' ) || exit;
if ( ! class_exists( 'KAPEE_EXTENSIONS_ADMIN' ) )
{
class KAPEE_EXTENSIONS_ADMIN {
function __construct() {
add_action( 'add_meta_boxes', array($this, 'kapee_size_chart_metabox') );
add_action( 'save_post', array($this, 'size_chart_content_meta_save') );
}
public function kapee_size_chart_metabox(){
add_meta_box( 'kapee-size-chart', __( 'Size Chart Table', 'kapee-extensions' ), array($this, 'kapee_size_chart_content'), KAPEE_EXTENSIONS_SIZE_CHART_POST_TYPE, 'normal', 'high' );
}
public function kapee_size_chart_content(){
include_once( KAPEE_EXTENSIONS_DIR .'/inc/admin/size-chart-metabox.php');
}
public function size_chart_content_meta_save($post_id) {
if (!isset($_POST['kapee_size_chart']))
return $post_id;
$nonce = $_POST['kapee_size_chart'];