public function WordPressAttachmentSource::__construct in WordPress Migrate 7
Same name and namespace in other branches
- 7.2 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) {
parent::__construct($filename, 'attachment');
$this->fields += $this->attachmentFields;
}