acf_get_image_size()ACF 1.0

Хуков нет.

Возвращает

null. Ничего.

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

acf_get_image_size( $s );
$s **
-
По умолчанию: ''

Код acf_get_image_size() ACF 5.10.2

function acf_get_image_size( $s = '' ) {

	// global
	global $_wp_additional_image_sizes;

	// rename for nicer code
	$_sizes = $_wp_additional_image_sizes;

	// vars
	$data = array(
		'width'  => isset( $_sizes[ $s ]['width'] ) ? $_sizes[ $s ]['width'] : get_option( "{$s}_size_w" ),
		'height' => isset( $_sizes[ $s ]['height'] ) ? $_sizes[ $s ]['height'] : get_option( "{$s}_size_h" ),
	);

	// return
	return $data;

}