You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.
Example on how to use wp_handle_sideload(): http://wordpress.stackexchange.com/a/36083/31323 (the answer shows the usage of media_handle_sideload() but the structure of the parameter is identical to the one for wp_handle_sideload().
Implement the new method in W2M\Import\Type\WpImportPost.
Parse <wp:attachment_url> in W2M\Import\Service\WpPostParser if exists. Propagate an error if it not exists and the post is of type attachment.
Update W2M\Import\Service\WpPostImporter to handle the file:
Download the file to a temporary file
»Handle sideload«
Import relevant metadata (but skip these, that pointing to data structures of the remote system like _wp_attached_file if we cannot force a 1:1 mirror of the file paths of the remote system)
delete the temporary file
The text was updated successfully, but these errors were encountered:
Implement attachment import.
Example on how to use
wp_handle_sideload()
: http://wordpress.stackexchange.com/a/36083/31323 (the answer shows the usage ofmedia_handle_sideload()
but the structure of the parameter is identical to the one forwp_handle_sideload()
.W2M\Import\Type\ImportPostInterface
:W2M\Import\Type\WpImportPost
.<wp:attachment_url>
inW2M\Import\Service\WpPostParser
if exists. Propagate an error if it not exists and the post is of typeattachment
.W2M\Import\Service\WpPostImporter
to handle the file:_wp_attached_file
if we cannot force a 1:1 mirror of the file paths of the remote system)The text was updated successfully, but these errors were encountered: