Skip to content

eevloeev/humanable-image-size-names

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Humanable image size names

It is a WordPress plugin that allows themes and other plugins to translate image size names into a readable form that is displayed using the Crop Thumbnails plugin.

How to use

Move the plugin folder to the wp-content/plugins/, activate the plugin in the admin panel of your site, and then use it in the code of other plugins and themes:

function translate_names($names) {

	return array_merge($names, [
		// your translations should be here... for example:
		'your-image-size' => _( 'Home background' ),
		'user-avatar' => _( 'Main profile photo ' ),
	]);
}
add_filter( 'humanable_image_size_names', 'translate_names' );

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages