It is critical for development that your local environment accurately reflects your remote site. In this lesson, you will learn how to import plugins, configuration, and content from a remote to a local WordPress instance.
There are a few steps to do this:
wp-contentfolder over to your local site
In the video you demonstrated how to overcome the issue with a non-existent post type when doing the import. There were, however, still a number of "Failed to import media" messages.
Is there a way to fix these?
Hi Patrick, Great spot! I should have addressed that in the video.
There are two possible solutions here:
This is an example of the code that would allow the import to work without an error. It's worth saying that this line should be removed after the import is complete to re-enable the security feature.