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', 'wp_kama_wpseo_image_weight_limit_filter' );

/**
 * Function for `wpseo_image_image_weight_limit` filter-hook.
 * 
 * @param int $2097152 The maximum weight (in bytes) of an image.
 *
 * @return int
 */
function wp_kama_wpseo_image_weight_limit_filter( $2097152 ){

	// filter...
	return $2097152;
}
$2097152(int)
The maximum weight (in bytes) of an image.

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

WPSEO_Image_Utils::has_usable_file_size()
wpseo_image_image_weight_limit
yoast/inc/class-wpseo-image-utils.php 164
$max_size = apply_filters( 'wpseo_image_image_weight_limit', 2097152 );

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

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