Integrate files via WordPress REST API

Logo of the plugin External files in the media library
Table of Contents

The „External files in the media library“ plugin allows you to use files from various external sources, e.g. via the WordPress REST API. How to do this is described below.

Use files from another WordPress project

WordPress offers a very good way to access project data with the REST API. The data of the files in the media library are also contained in this. This makes it possible for the „External files in the media library“ plugin to access these and integrate them into your own project.

Establish connection

  1. Go to Media library > Add external files and select „WordPress REST API“.
  2. Now enter the URL of the WordPress project whose REST API you want to access in the form.
  3. Send it to have the files listed.

Importing and using files

You can then also import the listed files into the media library. Whether these are linked externally or actually imported depends on the REST API as the source. File type settings from.

Frequently Asked Questions

I cannot access the project's REST API - why?

The website you have specified must offer a public output of the media library files in the REST API. This is the case in WordPress by default. However, security plugins could make access more difficult. If you are unable to establish a connection, please contact the operator of the project you want to access.

The project's REST API does not use SEO URLs - is that a disadvantage?

No, the plugin automatically recognizes which URL is used by the external project.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Question not answered?