T
T
t00rt2018-03-21 12:20:50
WordPress
t00rt, 2018-03-21 12:20:50

How does wp.media work in Wordpress?

There is a desire to make a gallery for WP, but there is not enough knowledge about this thing - "wp.media".
As far as I understand, this is something like an API for working with media files.
Is there a description of this beast somewhere, preferably in Russian?
A cursory search turned up only small examples, no description...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2018-03-21
@t00rt

wp.media is a javascript implementation/media management library. In fact, yes, it can be perceived as an API. Everything is in the documentation and in the source code itself:
https://codex.wordpress.org/Javascript_Reference/wp
https://codex.wordpress.org/Javascript_Reference/w...
https://core.trac.wordpress.org /browser/tags/4.9.4...
Here is another useful example:
https://github.com/ericandrewlewis/wp-media-javasc...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question