Enhanced Media Library 2.9.4 has 13 actions and 5 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Enhanced Media Library fires an action
add_action( 'edit_term_taxonomy', function( $term, $name ) {
// Your code runs here.
}, 10, 2 );
// Change a value Enhanced Media Library is about to use
add_filter( 'attachment_fields_to_save', function( $post, $attachment_data ) {
// Change $post here.
return $post;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
attachment_fields_to_save
filter/** * This filter is documented in wp-admin/includes/media.php */ apply_filters( 'attachment_fields_to_save', $post, $attachment_data ); -
list_cats
filter/** * This filter is documented in wp-includes/category-template.php */ apply_filters( 'list_cats', $category->name, $category ); -
the_category
filterapply_filters( 'the_category', $category->name ); -
edit_term_taxonomy
actiondo_action( 'edit_term_taxonomy', $term, $taxonomy->name ); -
edited_term_taxonomy
actiondo_action( 'edited_term_taxonomy', $term, $taxonomy->name ); -
do_action( 'wpuxss_eml_extend_settings_page' ); -
wpuxss_eml_pro_add_options
filterapply_filters( 'wpuxss_eml_pro_add_options', $options ); -
admin_enqueue_scripts
actiondo_action( 'admin_enqueue_scripts', $hook_suffix ); -
admin_head-{$hook_suffix}
actiondo_action( "admin_head-{$hook_suffix}" ); -
do_action( "admin_print_scripts-{$hook_suffix}" ); -
do_action( "admin_print_styles-{$hook_suffix}" ); -
delete_term_relationships
actiondo_action( 'delete_term_relationships', $attachment_id, $tt_ids ); -
deleted_term_relationships
actiondo_action( 'deleted_term_relationships', $attachment_id, $tt_ids ); -
load-{$hook_suffix}
actiondo_action( "load-{$hook_suffix}" ); -
apply_filters( 'wpuxss_eml_pro_add_transients', $transients ); -
wpuxss_eml_pro_set_settings
actiondo_action( 'wpuxss_eml_pro_set_settings', $wpuxss_eml_backup ); -
wpuxss_eml_set_options
actiondo_action( 'wpuxss_eml_set_options' ); -
wpuxss_eml_set_site_options
actiondo_action( 'wpuxss_eml_set_site_options' );
Generated from Enhanced Media Library's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: