automatewoo/includes/Variables/Guest_Email.php
fei-source 47d3c9a8b6 Update to v6.2.2
Source: GrootMade/Festinger Vault
2026-03-15 08:31:15 +08:00

27 lines
549 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace AutomateWoo;
defined( 'ABSPATH' ) || exit;
/**
* @class Variable_Guest_Email
*/
class Variable_Guest_Email extends Variable {
/**
* Load admin details.
*/
public function load_admin_details() {
$this->description = __( 'Displays the guests email address. Note: You can use this variable in the To field when sending emails.', 'automatewoo' );
}
/**
* @param Guest $guest
* @param array $parameters
* @return string
*/
public function get_value( $guest, $parameters ) {
return $guest->get_email();
}
}