WP hooks navigation: Home/browse • Actions index • Filters index
Important! Some hooks get applied in multiple files. If you are trying to figure out what a specific hook does, you need to look in all the files that apply the hook. Click the "details" link next to any hook for more information.
Hook | Type | New? | File | ||
---|---|---|---|---|---|
1 | wp_enqueue_media | action | no | wp-includes/media.php | |
2 | wp_playlist_scripts | action | no | wp-includes/media.php | |
3 | image_downsize | filter | no | wp-includes/media.php | |
4 | wp_audio_shortcode_library | filter | no | wp-includes/media.php | |
5 | image_size_names_choose | filter | no | wp-includes/media.php | |
6 | plupload_default_params | filter | no | wp-includes/media.php | |
7 | plupload_default_settings | filter | no | wp-includes/media.php | |
8 | wp_image_editors | filter | no | wp-includes/media.php | |
9 | upload_size_limit | filter | no | wp-includes/media.php | |
10 | {$adjacent}_image_link | note | filter | no | wp-includes/media.php |
11 | wp_video_shortcode | filter | no | wp-includes/media.php | |
12 | wp_video_shortcode_class | filter | no | wp-includes/media.php | |
13 | wp_video_shortcode_library | filter | no | wp-includes/media.php | |
14 | wp_video_shortcode_override | filter | no | wp-includes/media.php | |
15 | wp_video_extensions | filter | no | wp-includes/media.php | |
16 | wp_audio_shortcode | filter | no | wp-includes/media.php | |
17 | wp_audio_shortcode_class | filter | no | wp-includes/media.php | |
18 | wp_audio_shortcode_override | filter | no | wp-includes/media.php | |
19 | wp_prepare_attachment_for_js | filter | no | wp-includes/media.php | |
20 | media_upload_tabs | filter | no | wp-includes/media.php | |
21 | media_library_show_audio_playlist | filter | no | wp-includes/media.php | |
22 | media_library_show_video_playlist | filter | no | wp-includes/media.php | |
23 | media_library_months_with_files | filter | no | wp-includes/media.php | |
24 | media_library_infinite_scrolling | filter | YES | wp-includes/media.php | |
25 | disable_captions | filter | no | wp-includes/media.php | |
26 | media_view_settings | filter | no | wp-includes/media.php | |
27 | media_view_strings | filter | no | wp-includes/media.php | |
28 | get_attached_media_args | filter | no | wp-includes/media.php | |
29 | get_attached_media | filter | no | wp-includes/media.php | |
30 | media_embedded_in_content_allowed_types | filter | no | wp-includes/media.php | |
31 | get_post_galleries | filter | no | wp-includes/media.php | |
32 | get_post_gallery | filter | no | wp-includes/media.php | |
33 | attachment_url_to_postid | filter | no | wp-includes/media.php | |
34 | intermediate_image_sizes | filter | no | wp-includes/media.php | |
35 | wp_calculate_image_sizes | filter | no | wp-includes/media.php | |
36 | wp_calculate_image_srcset | filter | no | wp-includes/media.php | |
37 | max_srcset_image_width | filter | no | wp-includes/media.php | |
38 | wp_calculate_image_srcset_meta | filter | no | wp-includes/media.php | |
39 | wp_get_attachment_image | filter | no | wp-includes/media.php | |
40 | wp_get_attachment_image_attributes | filter | no | wp-includes/media.php | |
41 | wp_get_attachment_image_src | filter | no | wp-includes/media.php | |
42 | icon_dir | filter | no | wp-includes/media.php | |
43 | wp_image_file_matches_image_meta | filter | no | wp-includes/media.php | |
44 | image_get_intermediate_size | filter | no | wp-includes/media.php | |
45 | wp_image_resize_identical_dimensions | filter | no | wp-includes/media.php | |
46 | image_resize_dimensions | filter | no | wp-includes/media.php | |
47 | wp_constrain_dimensions | filter | no | wp-includes/media.php | |
48 | get_image_tag | filter | no | wp-includes/media.php | |
49 | get_image_tag_class | filter | no | wp-includes/media.php | |
50 | image_downsize | filter | no | wp-includes/media.php | |
51 | editor_max_image_size | filter | no | wp-includes/media.php | |
52 | wp_image_src_get_dimensions | filter | no | wp-includes/media.php | |
53 | wp_lazy_loading_enabled | filter | no | wp-includes/media.php | |
54 | wp_img_tag_add_loading_attr | filter | no | wp-includes/media.php | |
55 | wp_img_tag_add_width_and_height_attr | filter | no | wp-includes/media.php | |
56 | wp_img_tag_add_srcset_and_sizes_attr | filter | no | wp-includes/media.php | |
57 | wp_iframe_tag_add_loading_attr | filter | no | wp-includes/media.php | |
58 | img_caption_shortcode | filter | no | wp-includes/media.php | |
59 | img_caption_shortcode_width | filter | no | wp-includes/media.php | |
60 | post_gallery | filter | no | wp-includes/media.php | |
61 | use_default_gallery_style | filter | no | wp-includes/media.php | |
62 | gallery_style | filter | no | wp-includes/media.php | |
63 | post_playlist | filter | no | wp-includes/media.php | |
64 | wp_mediaelement_fallback | filter | no | wp-includes/media.php | |
65 | wp_audio_extensions | filter | no | wp-includes/media.php | |
66 | wp_get_attachment_id3_keys | filter | no | wp-includes/media.php |
Some hooks have variables in their names. For example, pre_${taxonomy}_$field
and admin_head-
both have variable names. In general, any hook that ends (or begins) with -
or _
, or contains a $
, has a variable name. Since the syntax with which these variables are defined may change from version to version, this page may think that a hook is deprecated (or new) even if it is not. You can usually catch this sort of thing by comparing this hook to the list of "related hooks" below.