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
- How to order a Custom Fields in admin panel
- Serving Images from subdomain in wordpress
- Get Custom Field Name ( Label or Key ) Not Value
- Compare ACF date field (if exists) and post date and order DESC
- Hook on file upload
- How To Save Data From Remote APIs To ACF?
- Custom Field: how to save array of multiple key-values in WordPress
- comments_where Hook
- Custom field on Quick Edit using select/dropdown – almost working right but not showing currently selected value
- How can I detect user’s timezone?
- Rewrite comment form post ID on submit
- Add WordPress user custom meta to chartjs vertically stacked chart in Divi theme
- show a specific metabox dependent on the page template
- ACF field group not showing in page
- excluding posts by an ACF field in pagination
- Type character in name and make it invisble
- Filter post style attribute
- What am I missing in this Code Block?
- Making WP_Query limit results by date before today where date is a meta_query
- Double Slash After Media Path (uploads//)
- add_comment_meta not working properly
- how to enable custom fields in the Gutenberg post editor
- How to show ACF fields in Gridbuilder custom block
- Adding data to User profile
- update_post_meta
- update_post_meta not working well
- How can I change author of posts to the value of one of the custom field of the posts?
- multiple meta_query and orderby question
- User query – getting values for custom meta keys/fields