Filter
rpress_email_setting_columns
On this page
Filters the column headings of the order notification emails table.
Runs when the Order Notifications section of the Emails settings tab is rendered. The array maps a column key to its heading text. The built-in rows output cells for the status, name, recipient and actions keys only, so extra columns receive a heading but no cell content from core.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$columns | array | Associative array of column key => column heading. Defaults to status, name, recipient and actions. |
Return value#
array. The column key => heading array.
Example#
function my_email_setting_columns( $columns ) {
$columns['recipient'] = __( 'Sent To', 'my-plugin' );
return $columns;
}
add_filter( 'rpress_email_setting_columns', 'my_email_setting_columns' );
Source#
Applied in:
includes/admin/settings/register-settings.php(line 3241), inrpress_order_notification_settings_callback()
See also#
Was this page helpful?
