WordPress at a glance
filter is not described

image_strip_meta filter-hook . WP 4.5.0

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

This filter only applies when resizing using the Imagick editor since GD always strips profiles by default.


add_filter( 'image_strip_meta', 'filter_function_name_977' );
function filter_function_name_977( $strip_meta ){
	// filter...

	return $strip_meta;
Whether to strip image metadata during resizing.
Default: true

Список изменений

С версии 4.5.0 Введена.

Где вызывается хук

wp-includes/class-wp-image-editor-imagick.php 327
if ( apply_filters( 'image_strip_meta', $strip_meta ) ) {

Где используется хук в ядре WP

Использование не найдено.