The solution was to simply wrap my JQuery in a function like this:
$('#wpcontent').ajaxStop(function() {
$('.attachment-filters').change(function(){
if($(this).val() === 'uploaded'){
alert("Uploaded images selected");
} else {
alert("Other option selected");
}
});
});
Related Posts:
- Custom bulk action for media gallery items
- Client PDF Upload (Catalogue) – Automatically update link to PDF
- display custom media folders to wordpress media popup
- Save Custom Meta Value on Media Upload
- Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
- How to filter post listing (in WP dashboard posts listing) using a custom field (search functionality)?
- Filter post listing by meta value which is a date
- Adding Custom Field to Taxonomy Input :Panel
- Using media-upload.php to upload mp3 via custom fields
- Extend WP Customizer to make multiple image selection possible
- How to prevent custom fields from being cleared during a bulk edit?
- Saving Custom Field in Attachment Window in WordPress 3.5
- custom tabs in media uploader
- Uploading Images to Multi-Site Causes Failure to HTTP Error
- WordPress custom upload field error
- How to show custom field’s value under post/page title in wp-admin
- limit amount of photos uploaded per cpt post
- Metabox with multiple fields added by user and upload box
- Metabox image upload and custom field
- Custom image sizes for custom field media uploads
- wp_handle_upload error “Specified file failed upload test” but still creates attachment?
- How to restrict wp-admin and prevent upload errors
- Insert attachment ID in custom field from media uploader
- Add More Fields to Users Pages (Admin Panel)
- How to save media files under custom folder without changing wp-config.php or changing media settings
- How can I store a file in the database in the same way WordPress and ACF do?
- Admin meta Image Path
- How make a custom search on backend in WordPress without plugin?
- How do i save and retrieve custom attachment meta?
- Custom Fields box in the post editor: Replace textareas with input elements
- Is there a simpler version of WP Media?
- Convert (-) and (escape) signs to (_) when uploading files on wordpress media library automatically
- modify wordpress caption shortcode
- How to add upload video option in wordpress for user?
- Button inside Custom Meta Box triggering the Update Button
- Custom dropdown field added to media gallery; how to get it to save properly?
- Uploading PDF using Media Uploader
- Client system for media review?
- I need a “Choose from existing content” popin
- Select multiple images from custom field
- Where to set individual blog quotas?
- Display MP3 as media using an URL from a custom field
- How to use media upload on metabox post page without breaking TinyMCE?
- WordPress colorpicker save both hex and RGB
- Front-End User Profile
- custom field in admin columns
- Image upload and path to custom field
- Jquery on custom-field backend
- How to delete file uploaded by Plupload
- Problem uploading different files as custom fields with front end post form
- How do I upload file through custom field, save it to database and get it
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- Upload error on localhost (at minimum, not yet tested online)
- Can you generate a featured image from two images from custom fields?
- WordPress admin area: select box with 12.000+ options
- Sort columns in the ‘Pages’ dashboard overview
- Link fields in User Admin list
- want to add video upload option for front end user
- Save custom post data outside of default post form
- Run filter if only it was run from specific admin page ( ‘upload_dir’ changed )
- Custom Meta Boxes and Fields for WordPress: Change directory upload based on user-edit page
- Change path to child of page when uploading image via custom field
- Media Attachment Custom Meta Fields not saving in Media Uploader when using jQuery UI Autocomplete
- How can I create more “create attachment” custom field – any idea?
- Decouple page name from page title
- Upload image to wordpress
- Multiple image uploader under editor?
- send information from the thickbox image uploader second tab
- unlink() doesn’t delete the uploaded file
- How can I attach files without using a plugin?
- Media Custom Fields – get a value with PHP
- Decrease file size upload in Media
- Plugins won’t recognize my plugin’s hidden custom fields
- Save page data to an xml file
- How do I use Ajax to build a dropdown of custom fields based on a post selected in previous dropdown?
- Register rest field for specific user
- Save the_content into custom field
- Sort alphabetically by custom field
- get post id using custom filed value
- Passing meta_box string to post__in?
- Can data from a Custom Field data be used by a shortcode on a per page/post basis?
- How can I modify RSS item titles to be either the title or a custom meta field?
- WordPress built in custom fields don’t validate or sanitize? Is there a way to fix this?
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- Big file upload give HTTP error
- Disable image rename on upload
- Change a custom field value after X number of seconds
- How to use custom fields like Title to show value in content?
- Populate custom checkout fields with data from previous orders
- Making custom meta box required (with error message if not filled in) on Gutenberg
- Changing form action based on selected value
- Handle image file and save it to media
- How to add content with a filter when there’s no content in the editor
- Making a custom upload form and page in the admin section
- How to overwrite a value for a custom field?
- WordPress archives by custom field and date
- Show posts containing or not custom field
- add_post_meta insert null value into Database
- extra post fields for url + youtube video / implementation
- Match submitted array fields with the MYSQL database fields to update them correctly in PHP