WordPress at Your Fingertips
function is not described

WP_Image_Editor::rotate() public WP 3.5.0

Rotates current image counter-clockwise by $angle.

{} It's a method of the class: WP_Image_Editor{}

No Hooks.

Return

true|WP_Error.

Usage

$WP_Image_Editor = new WP_Image_Editor();
$WP_Image_Editor->rotate( $angle );
$angle(float) (required)
-

Changelog

Since 3.5.0 Introduced.

Code of WP_Image_Editor::rotate() WP 5.7.2

<?php
abstract public function rotate( $angle );