
This plugin connects your WordPress site to your Mediagraph digital asset
library. Editors browse collections, storage folders, and lightboxes from inside
the editor and insert assets in a couple of clicks.
This plugin is a client for Mediagraph, a paid third-party digital asset
management service. It does nothing on its own: a Mediagraph account is required,
and the plugin is only useful to organizations that already have a library there.
Assets you choose are copied into the WordPress media library and inserted as
standard WordPress blocks. That is the important part: a Mediagraph image is an
ordinary attachment, so cropping, rotation, alignment, image sizes, captions,
alt text, srcset, and the Replace button all behave exactly as they do for a
file you uploaded yourself.
Features
Supported blocks
Image, Gallery, Audio, Video, Cover, File, Media & Text, Site Logo, and any
third-party block built on the standard WordPress media placeholder.
This plugin relies on Mediagraph, a third-party digital asset management
service operated by Mediagraph (https://www.mediagraph.io). The plugin is a
client for that service and cannot function without an account on it.
Nothing is sent anywhere until an administrator explicitly connects the site
under Settings Mediagraph. Connecting starts an OAuth 2.0 authorization at
mediagraph.io; you sign in there and approve access, and the site stores the
resulting access and refresh tokens. No password ever reaches WordPress, and no
client secret is stored on your site.
Once connected, the plugin contacts https://mediagraph.io in these cases:
When a post containing Mediagraph assets is published or updated, so the
library can record where an asset has been used. This report is the most
substantial thing the plugin sends, and it includes: which assets appear and
how they are used, your site name, the post’s title, permalink, publication
date, excerpt and author display name, and the post’s body as plain text.
The body is included so newsrooms can find the story an asset ran in from
inside Mediagraph. It is capped at 100,000 characters, and you can shorten or
disable it with the mediagraph_article_text_limit filter — setting it to 0
sends no body text. Posts with no Mediagraph assets are never reported.
The site’s own admin URL is sent as part of the OAuth redirect so the service
can return the browser to your site after authorization.
Nothing is sent about visitors to your site, no analytics or telemetry are
collected, and the plugin adds no markup, links or credits to your public pages.
Mediagraph’s terms and privacy policy govern the data handled by the service:
Development happens in the open at
https://github.com/mediagraph-io/mediagraph-wordpress — that repository is the
canonical source, and it is also where to report a bug or send a patch.
You do not need it to verify this plugin, though. The JavaScript in
admin/js/dist/ is compiled, so this package ships the unminified sources it is
built from, along with the tooling needed to reproduce them. Nothing is
obfuscated and no build step is hidden.
admin/js/src/ (the picker and the block editor integration)webpack.config.js, babel.config.js, package.json,admin/js/__tests__/From the plugin directory, with Node.js 18 or newer:
npm ci
npm run build
That regenerates admin/js/dist/mediagraph-picker.bundle.js and
admin/js/dist/mediagraph-blocks.bundle.js. npm run lint and npm test also
run against the shipped sources. React and the WordPress packages are treated as
externals and are not bundled — the plugin uses the copies WordPress provides.
https://docs.mediagraph.io or [email protected]