Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
JavaScript library with models, collections and views. Requires Underscore.js or Lo-Dash.
1
vote
1
answer
515
views
How to retrieve a value from an input field in a media view template
I've created a media view template with two input fields (width and height) and I was wondering how to retrieve the values entered in them in a media controller o view.
PHP:
function add_my_media_vi …
3
votes
1
answer
2k
views
Switch to the library tab in the media uploader
I'm developing a plugin that adds a tab to the media uploader to add external videos to the media library via oembed. Everything works as expected but I need to switch to the library tab after adding …
8
votes
4
answers
12k
views
Show only images and videos in a wp.media window
I'm using the following JS code to open a wp.media window to allow users to select images and videos for a gallery. Everything is working as expected, but I'm unable to restrict the window to show ima …
1
vote
1
answer
718
views
How to check an ajax nonce in PHP
I'm modifying the media modal adding a new menu item to add external attachments to the media library. From the JS code I'm calling a PHP function that touches the database and accepts three parameter …
6
votes
1
answer
3k
views
Open media frame and select an attachment
I'm using the following piece of code to open a media frame when clicking a link with a data-attachment_id attribute. This attribute holds the id of an attachment that I want to select when the frame …