image_strip_meta хук-фильтр . 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_3812' ); function filter_function_name_3812( $strip_meta ){ // filter... return $strip_meta; }
- $strip_meta(true/false)
- Whether to strip image metadata during resizing.
По умолчанию: true
Список изменений
С версии 4.5.0 | Введена. |
Где вызывается хук
image_strip_meta
wp-includes/class-wp-image-editor-imagick.php 335
if ( apply_filters( 'image_strip_meta', $strip_meta ) ) {