HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/MvAlphen/va-bo.nl/wwwroot/wp-content/themes/hattan/includes/meta_box.php
<?php

if (!function_exists('meta_box_init')) {  
    function meta_box_init(){

          $prefix = 'ef_';

            $config2 = array(
              'id'             => 'post_meta_box',          // meta box id, unique per meta box
              'title'          => 'Post Meta Box',          // meta box title
              'pages'          => array('post'),      // post types, accept custom post types as well, default is array('post'); optional
              'context'        => 'normal',            // where the meta box appear: normal (default), advanced, side; optional
              'priority'       => 'high',            // order of meta box: high (default), low; optional
              'fields'         => array(),            // list of meta fields (can be added by field arrays)
              'local_images'   => false,          // Use local or hosted images (meta box images for add/remove)
              'use_with_theme' => true          //change path if used with theme set to true, false for a plugin or anything else for a custom path(default false).
            );

            $my_meta2 =  new AT_Meta_Box($config2);
            $my_meta2->addTextarea($prefix.'video_frame',array('name'=> __('VIDEO EMBED CODE',EF1_THEME_NAME)));
            $my_meta2->Finish();

        }
    add_action( 'init', 'meta_box_init' );
}