WC_Email_Customer_Reset_Password::trigger
Trigger.
Метод класса: WC_Email_Customer_Reset_Password{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Email_Customer_Reset_Password = new WC_Email_Customer_Reset_Password(); $WC_Email_Customer_Reset_Password->trigger( $user_login, $reset_key );
- $user_login(строка)
- User login.
По умолчанию:'' - $reset_key(строка)
- Password reset key.
По умолчанию:''
Код WC_Email_Customer_Reset_Password::trigger() WC Email Customer Reset Password::trigger WC 10.4.3
public function trigger( $user_login = '', $reset_key = '' ) {
$this->setup_locale();
if ( $user_login && $reset_key ) {
$this->object = get_user_by( 'login', $user_login );
$this->user_id = $this->object->ID;
$this->user_login = $user_login;
$this->reset_key = $reset_key;
$this->user_email = stripslashes( $this->object->user_email );
$this->recipient = $this->user_email;
}
if ( $this->is_enabled() && $this->get_recipient() ) {
$this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );
}
$this->restore_locale();
}