WP_Image_Editor::flip()publicWP 3.5.0

Flips current image.

Method of the class: WP_Image_Editor{}

No Hooks.

Return

true|WP_Error.

Usage

$WP_Image_Editor = new WP_Image_Editor();
$WP_Image_Editor->flip( $horz, $vert );
$horz(true|false) (required)
Flip along Horizontal Axis
$vert(true|false) (required)
Flip along Vertical Axis

Changelog

Since 3.5.0 Introduced.

WP_Image_Editor::flip() code WP 6.5.2

abstract public function flip( $horz, $vert );