On this page
WP_Image_Editor::flip( bool $horz, bool $vert ): true|WP_Error
Flips current image.
Parameters
$horzbool Required-
Flip along Horizontal Axis
$vertbool Required-
Flip along Vertical Axis
Return
true|WP_Error
Source
File: wp-includes/class-wp-image-editor.php. View all references
abstract public function flip( $horz, $vert );
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/flip