WP HOOKS

Media

Hooki obrazów, załączników i biblioteki mediów.

4 akcji78 filtrówrazem 82

Popularne w tej kategorii

Ustawia jakość kompresji obrazów JPEG generowanych przez WordPress.

Modyfikuje atrybuty tagu <img> generowanego przez wp_get_attachment_image().

Wszystkie hooki

{$adjacent}_image_linkfiltrdynamiczny

Filters the adjacent image link.

attachment_url_to_postidfiltr

Filters an attachment ID found by URL.

editor_max_image_sizefiltr

Filters the maximum image size dimensions for the editor.

gallery_stylefiltr

Filters the default gallery shortcode CSS styles.

get_attached_mediafiltr

Filters the list of media attached to the given post.

get_attached_media_argsfiltr

Filters arguments used to retrieve media attached to the given post.

get_image_tagfiltr

Filters the HTML content for the image tag.

get_image_tag_classfiltr

Filters the value of the attachment's image tag class attribute.

get_post_galleriesfiltr

Filters the list of all found galleries in the given post.

get_post_galleryfiltr

Filters the first-found post gallery.

image_downsizefiltr

Filters whether to preempt the output of image_downsize().

image_editor_default_mime_typefiltr

Filters default mime type prior to getting the file extension.

image_editor_output_formatfiltr

Filters the image editor output format mapping.

image_get_intermediate_sizefiltr

Filters the output of image_get_intermediate_size()

image_make_intermediate_sizefiltr

Filters the name of the saved image file.

image_max_bit_depthfiltr

Filters the maximum bit depth of resized images.

image_resize_dimensionsfiltr

Filters whether to preempt calculating the image resize dimensions.

image_save_progressivefiltr

Filters whether to output progressive images (if available).

image_strip_metafiltr

Filters whether to strip metadata from images when they're resized.

img_caption_shortcodefiltr

Filters the default caption shortcode output.

img_caption_shortcode_widthfiltr

Filters the width of an image's caption.

intermediate_image_sizesfiltr

Filters the list of intermediate image sizes.

jpeg_qualityfiltr

Filters the JPEG compression quality for backward-compatibility.

max_srcset_image_widthfiltr

Filters the maximum image width to be included in a 'srcset' attribute.

media_embedded_in_content_allowed_typesfiltr

Filters the embedded media types that are allowed to be returned from the content blob.

media_library_infinite_scrollingfiltr

Filters whether the Media Library grid has infinite scrolling. Default `false`.

media_library_months_with_filesfiltr

Allows overriding the list of months displayed in the media library.

media_library_show_audio_playlistfiltr

Allows showing or hiding the "Create Audio Playlist" button in the media library.

media_library_show_video_playlistfiltr

Allows showing or hiding the "Create Video Playlist" button in the media library.

media_view_settingsfiltr

Filters the media view settings.

media_view_stringsfiltr

Filters the media view strings.

metadata_lazyloader_queued_objectsakcja

Fires after objects are added to the metadata lazy-load queue.

plupload_default_paramsfiltr

Filters the Plupload default parameters.

plupload_default_settingsfiltr

Filters the Plupload default settings.

post_galleryfiltr

Filters the default gallery shortcode output.

post_playlistfiltr

Filters the playlist output.

pre_attachment_url_to_postidfiltr

Filters the attachment ID to allow short-circuit the function.

pre_wp_get_loading_optimization_attributesfiltr

Filters whether to short-circuit loading optimization attributes.

print_media_templatesakcja

Fires when the custom Backbone media templates are printed.

upload_size_limitfiltr

Filters the maximum upload size allowed in php.ini.

use_default_gallery_stylefiltr

Filters whether to print default gallery styles.

wp_audio_extensionsfiltr

Filters the list of supported audio formats.

wp_audio_shortcodefiltr

Filters the audio shortcode output.

wp_audio_shortcode_classfiltr

Filters the class attribute for the audio shortcode output container.

wp_audio_shortcode_libraryfiltr

Filters the media library used for the audio shortcode.

wp_audio_shortcode_overridefiltr

Filters the default audio shortcode output.

wp_calculate_image_sizesfiltr

Filters the output of 'wp_calculate_image_sizes()'.

wp_calculate_image_srcsetfiltr

Filters an image's 'srcset' sources.

wp_calculate_image_srcset_metafiltr

Pre-filters the image meta to be able to fix inconsistencies in the stored data.

wp_constrain_dimensionsfiltr

Filters dimensions to constrain down-sampled images to.

wp_content_img_tagfiltr

Filters an img tag within the content for a given context.

wp_editor_set_qualityfiltr

Filters the default image compression quality setting.

wp_enqueue_mediaakcja

Fires at the conclusion of wp_enqueue_media().

wp_get_attachment_id3_keysfiltr

Filters the editable list of keys to look up data from an attachment's metadata.

wp_get_attachment_imagefiltr

Filters the HTML img element representing an image attachment.

wp_get_attachment_image_attributesfiltr

Filters the list of attachment image attributes.

wp_get_attachment_image_contextfiltr

Filters the context in which wp_get_attachment_image() is used.

wp_get_attachment_image_srcfiltr

Filters the attachment image source result.

wp_get_loading_optimization_attributesfiltr

Filters the loading optimization attributes.

wp_iframe_tag_add_loading_attrfiltr

Filters the `loading` attribute value to add to an iframe. Default `lazy`.

wp_image_editorsfiltr

Filters the list of image editing library classes.

wp_image_file_matches_image_metafiltr

Filters whether an image path or URI matches image meta.

wp_image_maybe_exif_rotatefiltr

Filters the `$orientation` value to correct it before rotating or to prevent rotating the image.

wp_image_resize_identical_dimensionsfiltr

Filters whether to proceed with making an image sub-size with identical dimensions with the original/source image. Differences of 1px may be due to rounding and are ignored.

wp_image_src_get_dimensionsfiltr

Filters the 'wp_image_src_get_dimensions' value.

wp_img_tag_add_auto_sizesfiltr

Filters whether auto-sizes for lazy loaded images is enabled.

wp_img_tag_add_decoding_attrfiltr

Filters the `decoding` attribute value to add to an image. Default `async`.

wp_img_tag_add_loading_attrfiltr

Filters the `loading` attribute value to add to an image. Default `lazy`.

wp_img_tag_add_srcset_and_sizes_attrfiltr

Filters whether to add the `srcset` and `sizes` HTML attributes to the img tag. Default `true`.

wp_img_tag_add_width_and_height_attrfiltr

Filters whether to add the missing `width` and `height` HTML attributes to the img tag. Default `true`.

wp_lazy_loading_enabledfiltr

Filters whether to add the `loading` attribute to the specified tag in the specified context.

wp_loading_optimization_force_header_contextsfiltr

Filters the header-specific contexts.

wp_mediaelement_fallbackfiltr

Filters the MediaElement fallback output for no-JS.

wp_min_priority_img_pixelsfiltr

Filters the minimum square-pixels threshold for an image to be eligible as the high-priority image.

wp_omit_loading_attr_thresholdfiltr

Filters the threshold for how many of the first content media elements to not lazy-load.

wp_playlist_scriptsakcja

Prints and enqueues playlist scripts, styles, and JavaScript templates.

wp_prepare_attachment_for_jsfiltr

Filters the attachment data prepared for JavaScript.

wp_video_extensionsfiltr

Filters the list of supported video formats.

wp_video_shortcodefiltr

Filters the output of the video shortcode.

wp_video_shortcode_classfiltr

Filters the class attribute for the video shortcode output container.

wp_video_shortcode_libraryfiltr

Filters the media library used for the video shortcode.

wp_video_shortcode_overridefiltr

Filters the default video shortcode output.