Automattic\WooCommerce\Internal\StockNotifications\Frontend
MyAccountEndpoint::can_resend
Check whether the customer can ask for the verification email again.
Only pending sign-ups have anything to verify; the management service enforces the same rule when the request comes in.
Method of the class: MyAccountEndpoint{}
No Hooks.
Returns
bool. True when the notification is still awaiting confirmation.
Usage
$result = MyAccountEndpoint::can_resend( $notification ): bool;
- $notification(Notification) (required)
- The notification to check.
MyAccountEndpoint::can_resend() MyAccountEndpoint::can resend code WC 11.2.1
public static function can_resend( Notification $notification ): bool {
return NotificationStatus::PENDING === (string) $notification->get_status();
}