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