Class WC_Shortcode_My_Account

My Account Shortcodes

Shows the 'my account' section where the customer can view past orders and update their information.

Package: WooCommerce\Shortcodes\My\Account
Category: Shortcodes
Author: WooThemes
Version: 2.0.0
Located at includes/shortcodes/class-wc-shortcode-my-account.php

Methods summary

public static string
# get( array $atts )

Get the shortcode content.

Get the shortcode content.

Parameters

$atts
array
$atts

Returns

string
public static
# output( array $atts )

Output the shortcode.

Output the shortcode.

Parameters

$atts
array
$atts
public static
# lost_password( )

Lost password page

Lost password page

public static boolean
# retrieve_password( )

Handles sending password retrieval email to customer.

Handles sending password retrieval email to customer.

Returns

boolean
True: when finish. False: on error

Uses

$wpdb WordPress Database object
public static object|boolean
# check_password_reset_key( string $key, string $login )

Retrieves a user row based on password reset key and login

Retrieves a user row based on password reset key and login

Parameters

$key
string
$key Hash to validate sending user's password
$login
string
$login The user login

Returns

object|boolean
User's database row on success, false for invalid keys

Uses

$wpdb WordPress Database object
public static
# reset_password( object $user, string $new_pass )

Handles resetting the user's password.

Handles resetting the user's password.

Parameters

$user
object
$user The user
$new_pass
string
$new_pass New password for the user in plaintext

Magic methods summary

WooCommerce API documentation generated by ApiGen 2.8.0