Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question