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-content
folder over to your local siteIn 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:
add_filter('http_request_host_is_external', '__return_true');
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.