image_edit_before_change

image_edit_before_change

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.3.2

apply_filters('image_edit_before_change') is found 1 times:

  • /wp-admin/includes/image-edit.php line 573
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
         *
         * @param resource $image   GD image resource.
         * @param array    $changes Array of change operations.
         */
        $image = apply_filters( 'image_edit_before_change', $image, $changes );
    }
     
    foreach ( $changes as $operation ) {
        switch ( $operation->type ) {
            case 'rotate':
                if ( $operation->angle != 0 ) {