wpseo_image_image_weight_limit хук-фильтр . Yoast 1.0
Filter: 'wpseo_image_image_weight_limit' - Determines what the maximum weight (in bytes) of an image is allowed to be, default is 2 MB.
Использование
add_filter( 'wpseo_image_image_weight_limit', 'filter_function_name_4763' ); function filter_function_name_4763( $2097152 ){ // filter... return $2097152; }
- $2097152(число)
- The maximum weight (in bytes) of an image.
Где вызывается хук
wpseo_image_image_weight_limit
yoast/inc/class-wpseo-image-utils.php 164
$max_size = apply_filters( 'wpseo_image_image_weight_limit', 2097152 );