wp.media.selectionSync
Sync an attachments selection in a state with another state.
Allows for selecting multiple images in the Add Media workflow, and then
switching to the Insert Gallery workflow while preserving the attachments selection.
- Source:
Methods
-
<static> recordSelection()
-
Record the currently active attachments, which is a combination of the selection's attachments and the set of selected attachments that this specific selection considered invalid. Reset the difference and record the single attachment.
- Since:
-
- 3.5.0
- Source:
-
<static> syncSelection()
-
- Since:
-
- 3.5.0
- Source: