ClassesBigCommerceReviewsProduct Update Listener

Product_Update_Listener

Class Product_Update_Listener

Listens for updates to product meta to determine if the review cache should be flushed

  • Full name: \BigCommerce\Reviews\Product_Update_Listener

Constants

ConstantVisibilityTypeValue
TRIGGER_UPDATEpublic’bigcommerce/reviews/update’

Methods

meta_updated

Check if updates to product meta include changes to review count or rating sum

public meta_updated(int $meta_id, int $post_id, string $meta_key, mixed $meta_value): mixed

Parameters:

ParameterTypeDescription
$meta_idintID of updated metadata entry.
$post_idintPost ID.
$meta_keystringMeta key.
$meta_valuemixedMeta value.


Automatically generated on 2025-01-21