Fields_Service
in package
implements
Premium_Service, Registerable
Provide additional email at different places depend on the settings
Tags
Table of Contents
Interfaces
- Premium_Service
- Registerable
Properties
Methods
- __construct() : mixed
- Abstract_Email_Provider constructor.
- add_account_emails() : mixed
- add_admin_user_profile_emails() : array<string|int, mixed>
- add_email_fields_to_blocks_checkout() : mixed
- add_frontend_emails() : array<string|int, mixed>
- register() : mixed
- save_fields_from_order_post() : mixed
- Store the additional recipients as order metadata
- save_fields_from_user_post() : mixed
- Store additional emails in the user account (customer billing address)
Properties
$fields_manager
private
Fields_Manager
$fields_manager
$plugin
private
Plugin
$plugin
Methods
__construct()
Abstract_Email_Provider constructor.
public
__construct(Plugin $plugin) : mixed
Parameters
- $plugin : Plugin
add_account_emails()
public
add_account_emails() : mixed
add_admin_user_profile_emails()
public
add_admin_user_profile_emails(array<string|int, mixed> $fields) : array<string|int, mixed>
Parameters
- $fields : array<string|int, mixed>
Return values
array<string|int, mixed>add_email_fields_to_blocks_checkout()
public
add_email_fields_to_blocks_checkout() : mixed
add_frontend_emails()
public
add_frontend_emails(array<string|int, mixed> $fields) : array<string|int, mixed>
Parameters
- $fields : array<string|int, mixed>
Return values
array<string|int, mixed>register()
public
register() : mixed
save_fields_from_order_post()
Store the additional recipients as order metadata
public
save_fields_from_order_post(WC_Order $order) : mixed
In addition to attaching the additional email addresses to the order as metadata it also saves them as additional emails for the user who placed the order
Parameters
- $order : WC_Order
save_fields_from_user_post()
Store additional emails in the user account (customer billing address)
public
save_fields_from_user_post(int $user_id) : mixed
Parameters
- $user_id : int