PHP 클래스 WC_Shortcode_My_Account

Shows the 'my account' section where the customer can view past orders and update their information.
저자: WooThemes
파일 보기 프로젝트 열기: woocommerce/woocommerce 1 사용 예제들

공개 메소드들

메소드 설명
add_payment_method ( ) Show the add payment method page.
check_password_reset_key ( string $key, string $login ) : WP_User | boolean Retrieves a user row based on password reset key and login.
edit_account ( ) Edit account details page.
edit_address ( string $load_address = 'billing' ) Edit address page.
get ( array $atts ) : string Get the shortcode content.
lost_password ( ) Lost password page handling.
output ( array $atts ) Output the shortcode.
reset_password ( object $user, string $new_pass ) Handles resetting the user's password.
retrieve_password ( ) : boolean Handles sending password retrieval email to customer.
set_reset_password_cookie ( $value = '' ) Set or unset the cookie.
view_order ( integer $order_id ) View order page.

비공개 메소드들

메소드 설명
my_account ( array $atts ) My account page.

메소드 상세

add_payment_method() 공개 정적인 메소드

Show the add payment method page.
public static add_payment_method ( )

check_password_reset_key() 공개 정적인 메소드

Retrieves a user row based on password reset key and login.
public static check_password_reset_key ( string $key, string $login ) : WP_User | boolean
$key string Hash to validate sending user's password
$login string The user login
리턴 WP_User | boolean User's database row on success, false for invalid keys

edit_account() 공개 정적인 메소드

Edit account details page.
public static edit_account ( )

edit_address() 공개 정적인 메소드

Edit address page.
public static edit_address ( string $load_address = 'billing' )
$load_address string

get() 공개 정적인 메소드

Get the shortcode content.
public static get ( array $atts ) : string
$atts array
리턴 string

lost_password() 공개 정적인 메소드

Lost password page handling.
public static lost_password ( )

output() 공개 정적인 메소드

Output the shortcode.
public static output ( array $atts )
$atts array

reset_password() 공개 정적인 메소드

Handles resetting the user's password.
public static reset_password ( object $user, string $new_pass )
$user object The user
$new_pass string New password for the user in plaintext

retrieve_password() 공개 정적인 메소드

Based on retrieve_password() in core wp-login.php.
public static retrieve_password ( ) : boolean
리턴 boolean True: when finish. False: on error

view_order() 공개 정적인 메소드

View order page.
public static view_order ( integer $order_id )
$order_id integer