Automattic\WooCommerce\Internal\PushNotifications\Triggers
NewReviewNotificationTrigger::register
Registers WordPress hooks for review events.
Method of the class: NewReviewNotificationTrigger{}
No Hooks.
Returns
null. Nothing (null).
Usage
$NewReviewNotificationTrigger = new NewReviewNotificationTrigger(); $NewReviewNotificationTrigger->register(): void;
Changelog
| Since 10.7.0 | Introduced. |
NewReviewNotificationTrigger::register() NewReviewNotificationTrigger::register code WC 11.0.1
public function register(): void {
add_action( 'comment_post', array( $this, 'on_comment_post' ), 10, 3 );
}