“IPTC/EXIF Mapping Actions” during wp-cli “–skip-copy” import
-
wp media import "/path/to/image.png" --skip-copy
imports items to the Media Library without adding or moving source image files in
uploads/
. But skipping the image file copy also skips MLA’smla_upload_prefilter
hook andIPTC/EXIF Mapping Actions.
The Attachment File Metadata is not added to the imported media item record so the Standard field mapping Rules don’t work.How would you recommend calling
mla_upload_prefilter
when using this media import method?The MLA Metadata Mapping Hooks Example and MLA CSV Data Source Example plugins have related features I’m reviewing, too.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘“IPTC/EXIF Mapping Actions” during wp-cli “–skip-copy” import’ is closed to new replies.