public function WordPressAttachmentSource::__construct in WordPress Migrate 7.2
Same name and namespace in other branches
- 7 wordpress_attachment.inc \WordPressAttachmentSource::__construct()
Simple initialization.
Overrides WordPressItemSource::__construct
File
- ./
wordpress_attachment.inc, line 22
Class
- WordPressAttachmentSource
- Override WordPressItemSource, to add additional fields for attachments.
Code
public function __construct($filename, $cache_key) {
parent::__construct($filename, 'attachment', $cache_key);
$this->fields += $this->attachmentFields;
}