WP_Image_Editor::flippublicWP 3.5.0

Flips current image.

Method of the class: WP_Image_Editor{}

No Hooks.

Returns

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.9.1

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