public function filter_header_image_data($value, $old_value = false) { $url = $this->get_url($value->attachment_id); if ($url) { $value->url = $url; $value->thumbnail_url = $url; } return $value; }