review_images_delete

Triggered on deletion of an image from a product review.

Shop-Script

Input (passed by reference)

$image array Product review image properties from the 'shop_product_reviews_images' table.
$image['id'] int Image ID.
$image['review_id'] int Product review ID.
$image['product_id'] int Product ID.
$image['original_filename'] string Image file name.
$image['ext'] string Image file name extension.
$image['upload_datetime'] string Image adding date and time of the image in the “yyyy-mm-dd hh:mm:ss” format.
$image['sort'] int Image sort order value.
$image['width'] int Image width in pixels.
$image['height'] int Image height in pixels.
$image['size'] int Image file size in bytes.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function reviewImagesDelete($image)
{
    waLog::log(
        sprintf(_wp('Deleted review image file name: %s.'), $image['original_filename']),
        'shop/plugins/my.log'
    );
}