Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation

CreateAccount::render_confirmation()protectedWC 1.0

Render the block when an account has been registered.

Метод класса: CreateAccount{}

Хуков нет.

Возвращает

Строку.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->render_confirmation();

Код CreateAccount::render_confirmation() WC 9.8.5

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;
}