fields = $fields; $this->blogbuster_box_label = $args['blogbuster_box_label_text'] ; $this->blogbuster_box_add_control = $args['blogbuster_box_add_control_text']; $this->blogbuster_field_limit = $args['blogbuster_field_limit']; $this->categories = get_categories(); $this->required = isset( $args['required'] ) ? $args['required'] : array(); // required dependencies } public function to_json() { parent::to_json(); $this->json['required'] = $this->required; // Send required dependency to JSON } protected function render_content() { $repeater_id = $this->id; $values = json_decode( $this->value() ); $field_count = count( $values ); ?> label ); ?> description ) { ?> description ); ?>