WordPress at Your Fingertips
function is not described

WC_Shortcode_My_Account::my_account() private WC 1.0

My account page.

{} It's a method of the class: WC_Shortcode_My_Account{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Shortcode_My_Account::my_account( $atts );
$atts(array) (required)
Shortcode attributes.

Code of WC_Shortcode_My_Account::my_account() WC 5.9.0

private static function my_account( $atts ) {
	$args = shortcode_atts(
		array(
			'order_count' => 15, // @deprecated 2.6.0. Keep for backward compatibility.
		),
		$atts,
		'woocommerce_my_account'
	);

	wc_get_template(
		'myaccount/my-account.php',
		array(
			'current_user' => get_user_by( 'id', get_current_user_id() ),
			'order_count'  => 'all' === $args['order_count'] ? -1 : $args['order_count'],
		)
	);
}