On this page
WP_Image_Editor::rotate( float $angle ): true|WP_Error
Rotates current image counter-clockwise by $angle.
Parameters
$anglefloat Required
Return
true|WP_Error
Source
File: wp-includes/class-wp-image-editor.php. View all references
abstract public function rotate( $angle );
Related
Used By
| Used By | Description |
|---|---|
| WP_Image_Editor::maybe_exif_rotate() wp-includes/class-wp-image-editor.php | Check if a JPEG image has EXIF Orientation tag and rotate it if needed. |
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_image_editor/rotate