public function __construct($field, $value)
 {
     $this->field = $field;
     $this->value = $value;
     $this->object_id = rrze_Meta_Box::get_object_id();
     $this->object_type = rrze_Meta_Box::get_object_type();
 }
 public function __construct($field_args)
 {
     $this->object_id = rrze_Meta_Box::get_object_id();
     $this->object_type = rrze_Meta_Box::get_object_type();
     $this->args = $this->_set_field_defaults($field_args);
     $this->value = apply_filters('rrze_mb_override_meta_value', 'rrze_mb_no_override_val', $this->object_id, $this->args(), $this->object_type, $this);
     $this->value = 'rrze_mb_no_override_val' === $this->value ? $this->get_data() : $this->value;
 }
 public static function check_page_template($display, $meta_box)
 {
     if (!isset($meta_box['show_on']['key']) || 'page-template' !== $meta_box['show_on']['key']) {
         return $display;
     }
     $object_id = rrze_Meta_Box::get_object_id();
     if (!$object_id || rrze_Meta_Box::get_object_type() !== 'post') {
         return false;
     }
     $current_template = get_post_meta($object_id, '_wp_page_template', true);
     if ($current_template && in_array($current_template, (array) $meta_box['show_on']['value'])) {
         return true;
     }
     return false;
 }