Automattic\WooCommerce\Internal\StockNotifications\Frontend

NotificationManagementService{}WC 1.0

Notification management service.

No Hooks.

Usage

$NotificationManagementService = new NotificationManagementService();
// use class methods

Methods

  1. public get_resend_verification_email_url( Notification $notification )

NotificationManagementService{} code WC 10.3.6

class NotificationManagementService {

	/**
	 * Get resend verification email URL.
	 *
	 * @param Notification $notification The notification.
	 * @return string The resend verification email URL.
	 */
	public function get_resend_verification_email_url( Notification $notification ): string {
		$url = add_query_arg(
			array(
				'wc_bis_resend_notification' => $notification->get_id(),
			),
			$notification->get_product_permalink()
		);

		return wp_nonce_url(
			$url,
			'wc_bis_resend_verification_email_nonce'
		);
	}
}