'[product_image_url]', ); public $display_name = 'Product image url'; public function getValue($post, $field) { return $this->getProductImageUrl($post, $field); } protected function getProductImageUrl($post, $field) { return get_the_post_thumbnail_url($post, get_option(Database::$optionPostImageSize, 'medium')); } }