media.model.Attachments.propmap
: include
and exclude
, which are aliases for post__in
and post__not_in
.
This allows you to instantiate a library that includes and/or excludes specific attachments by passing a single ID or an array of IDs. Example usage: {{{ wp.media({frame: 'post', library: {include: [414, 415]}}).open() wp.media({frame: 'post', library: {include: 414}}).open() wp.media({frame: 'post', library: {exclude: [414, 415]}}).open() wp.media({frame: 'post', library: {exclude: 414}}).open() }}} Fixes #26587. git-svn-id: https://develop.svn.wordpress.org/trunk@29759 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
76.7%
CSS
10.9%
JavaScript
9.2%
Modelica
2.4%
HTML
0.6%
Other
0.2%