Automattic\WooCommerce\Internal\StockNotifications\Frontend

NotificationManagementService::get_resend_verification_email_urlpublicWC 1.0

Get resend verification email URL.

Method of the class: NotificationManagementService{}

No Hooks.

Returns

String. The resend verification email URL.

Usage

$NotificationManagementService = new NotificationManagementService();
$NotificationManagementService->get_resend_verification_email_url( $notification ): string;
$notification(Notification) (required)
The notification.

NotificationManagementService::get_resend_verification_email_url() code WC 10.9.4

public function get_resend_verification_email_url( Notification $notification ): string {
	$url = add_query_arg(
		array(
			self::RESEND_QUERY_ARG => $notification->get_id(),
		),
		$notification->get_product_permalink()
	);

	return wp_nonce_url( $url, self::RESEND_NONCE_ACTION . '_' . $notification->get_id() );
}