WP_Image_Editor::get_suffix() public WP 3.5.0
Builds and returns proper suffix for file based on height and width.
{} It's a method of the class: WP_Image_Editor{}
No Hooks.
Return
String/false. suffix
Usage
$WP_Image_Editor = new WP_Image_Editor(); $WP_Image_Editor->get_suffix();
Changelog
Since 3.5.0 | Introduced. |
Code of WP_Image_Editor::get_suffix() WP Image Editor::get suffix WP 5.6
public function get_suffix() {
if ( ! $this->get_size() ) {
return false;
}
return "{$this->size['width']}x{$this->size['height']}";
}