ims_units

Description

The “ims_units” filter is used to add or remove measurement units like inches, centimeters and pixels.

A plugin (or theme) can modify the array with the code:

<?php add_filter( 'ims_units', 'filter_function_name' ); ?>

The hook is located in the image-store/_inc/core.php file.

Example

// Apply filter
function add_ims_units( $units ) {
	$units['pc'] = __( 'Picas' ); // add measurement unit
	return $pages; 
}
add_filter('ims_units', 'add_ims_units');

Note:  $units is an associative array.


Leave a Reply

Your email address will not be published. Required fields are marked *