Email extends Component
Handles emails.
Table of Contents
- __construct() : mixed
- Class constructor.
- add_admin_columns() : array<string|int, mixed>
- Adds admin columns.
- disable_editor_settings() : array<string|int, mixed>
- Disables email editor settings.
- register_integrations() : mixed
- Registers integrations.
- render_admin_columns() : mixed
- Renders admin columns.
- render_email_details() : array<string|int, mixed>
- Renders email details for admins.
- set_email_content() : array<string|int, mixed>
- Sets email content.
- set_email_defaults() : mixed
- Sets email defaults.
- boot() : mixed
- Bootstraps component properties.
- set_callbacks() : mixed
- Sets the action and filter callbacks.
- set_property() : mixed
- Sets a property value.
Methods
__construct()
Class constructor.
public
__construct([array<string|int, mixed> $args = [] ]) : mixed
Parameters
- $args : array<string|int, mixed> = []
-
Component arguments.
Return values
mixed —add_admin_columns()
Adds admin columns.
public
add_admin_columns(array<string|int, mixed> $columns) : array<string|int, mixed>
Parameters
- $columns : array<string|int, mixed>
-
Columns.
Return values
array<string|int, mixed> —disable_editor_settings()
Disables email editor settings.
public
disable_editor_settings(array<string|int, mixed> $settings, string $editor) : array<string|int, mixed>
Parameters
- $settings : array<string|int, mixed>
-
Settings.
- $editor : string
-
Editor ID.
Return values
array<string|int, mixed> —register_integrations()
Registers integrations.
public
register_integrations() : mixed
Return values
mixed —render_admin_columns()
Renders admin columns.
public
render_admin_columns(string $column, int $email_id) : mixed
Parameters
- $column : string
-
Column name.
- $email_id : int
-
Email ID.
Return values
mixed —render_email_details()
Renders email details for admins.
public
render_email_details(array<string|int, mixed> $meta_box) : array<string|int, mixed>
Parameters
- $meta_box : array<string|int, mixed>
-
Meta box arguments.
Return values
array<string|int, mixed> —set_email_content()
Sets email content.
public
set_email_content(array<string|int, mixed> $args, object $email) : array<string|int, mixed>
Parameters
- $args : array<string|int, mixed>
-
Email arguments.
- $email : object
-
Email object.
Return values
array<string|int, mixed> —set_email_defaults()
Sets email defaults.
public
set_email_defaults(int $post_id, WP_Post $post, WP_Post $old_post) : mixed
Parameters
- $post_id : int
-
Post ID.
- $post : WP_Post
-
Post object.
- $old_post : WP_Post
-
Old post object.
Return values
mixed —boot()
Bootstraps component properties.
protected
boot() : mixed
Return values
mixed —set_callbacks()
Sets the action and filter callbacks.
protected
final set_callbacks(array<string|int, mixed> $callbacks) : mixed
Parameters
- $callbacks : array<string|int, mixed>
-
Callback arguments.
Return values
mixed —set_property()
Sets a property value.
protected
final set_property(string $name, mixed $value[, string $prefix = '' ]) : mixed
Parameters
- $name : string
-
Property name.
- $value : mixed
-
Property value.
- $prefix : string = ''
-
Method prefix.