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
- Upload specific images to specific folder
- Thickbox hacking – removing fields
- How to use custom fields in post title?
- Date, Time, and Timezones
- Call a custom field in an audio shortcode?
- Custom Fields with get_post()
- media sideload image not working with JPG file
- Custom Field Create Bulk via SQL Query
- Should custom meta boxes be able to output shortcodes the same as WordPress’ native post editor?
- Is it possible to use media_sideload_image to upload local files?
- More efficient to add content to custom fields or the content area?
- Plot location on Google map using full address specified in custom field
- File names are being overridden when uploading new media
- Display custom field value as a hyperlink
- Query post by date (stored custom field meta as yyyymmdd) and differentiate across 12 months
- How to change permalink on headlines in rss feeds?
- get_field values for each post on home page using wp_add_inline_style
- Is there a way to determine which user changed a custom field (and when)?
- Metabox/Custom fields are not saving input data
- Show echo ready in single.php
- Order categories by sum of custom fields
- how to modify a field’s size in a metabox : ROWS height, and scroll control?
- Thirtieth century date for a post
- Upload more than one media files with a post
- Custom field in external Javascript
- Analyze uploaded images to get colour values
- Turn Current Date in Custom Field Ouput Green or Red
- Single file upload
- Blurry Images WordPress 5.8.1