Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation
CreateAccount::render_confirmation()
Render the block when an account has been registered.
Method of the class: CreateAccount{}
No Hooks.
Return
String
.
Usage
// protected - for code of main (parent) or child class $result = $this->render_confirmation();
CreateAccount::render_confirmation() CreateAccount::render confirmation code WC 9.6.0
protected function render_confirmation() { $content = '<div class="wc-block-order-confirmation-create-account-success" id="create-account">'; $content .= '<h3>' . esc_html__( 'Your account has been successfully created', 'woocommerce' ) . '</h3>'; $content .= '<p>' . sprintf( /* translators: 1: link to my account page, 2: link to shipping and billing addresses, 3: link to account details, 4: closing tag */ esc_html__( 'You can now %1$sview your recent orders%4$s, manage your %2$sshipping and billing addresses%4$s, and edit your %3$spassword and account details%4$s.', 'woocommerce' ), '<a href="' . esc_url( wc_get_endpoint_url( 'orders', '', wc_get_page_permalink( 'myaccount' ) ) ) . '">', '<a href="' . esc_url( wc_get_endpoint_url( 'edit-address', '', wc_get_page_permalink( 'myaccount' ) ) ) . '">', '<a href="' . esc_url( wc_get_endpoint_url( 'edit-account', '', wc_get_page_permalink( 'myaccount' ) ) ) . '">', '</a>' ) . '</p>'; $content .= '</div>'; return $content; }