Automattic\WooCommerce\Internal\StockNotifications\Frontend
MyAccountEndpoint::resend
Send the verification email again for a pending notification.
Метод класса: MyAccountEndpoint{}
Хуков нет.
Возвращает
string|\WP_Error. Success notice text, or the error to show instead.
Использование
// private - только в коде основоного (родительского) класса $result = $this->resend( $notification );
- $notification(Notification) (обязательный)
- The notification, already checked to belong to the current user.
Код MyAccountEndpoint::resend() MyAccountEndpoint::resend WC 11.2.2
private function resend( Notification $notification ) {
$result = $this->notification_management_service->resend_verification_email( $notification );
if ( is_wp_error( $result ) ) {
return $result;
}
/* translators: %s: email address the verification email was sent to. */
return sprintf( __( 'Verification email sent to "%s". Please check your inbox!', 'woocommerce' ), $notification->get_user_email() );
}