こんにちは、今日はWordPressのメディア関連フィルターフックについてまとめていきます。
確認環境
WordPress 5.5.3
フィルターフック一覧
| フック名 | 説明 |
| editor_max_image_size | |
| image_downsize | |
| get_image_tag_class | |
| get_image_tag | |
| image_resize_dimensions | |
| intermediate_image_sizes | |
| icon_dir | |
| wp_get_attachment_image_attributes | |
| img_caption_shortcode | |
| post_gallery | |
| use_default_gallery_style | |
| gallery_style | |
| (adjacent)_image_link | |
| embed_defaults | |
| load_default_embeds | |
| embed_googlevideo | |
| upload_size_limit | |
| wp_image_editors | |
| plupload_default_settings | |
| plupload_default_params | |
| image_size_names_choose | |
| wp_prepare_attachment_for_js | |
| media_upload_tabs | |
| disable_captions | |
| media_view_settings | |
| media_view_strings | |
| wp_handle_upload_prefilter |