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.
Метод класса: MyAccountEndpoint{}
Хуков нет.
Возвращает
bool. True when the notification is still awaiting confirmation.
Использование
$result = MyAccountEndpoint::can_resend( $notification ): bool;
- $notification(Notification) (обязательный)
- The notification to check.
Код MyAccountEndpoint::can_resend() MyAccountEndpoint::can resend WC 11.2.2
public static function can_resend( Notification $notification ): bool {
return NotificationStatus::PENDING === (string) $notification->get_status();
}