';
foreach ( $columns as $key => $column ) {
switch ( $key ) {
case 'name':
echo '
' . esc_html( $email->get_title() ) . '
' . wc_help_tip( $email->get_description() ) . '
| ';
break;
case 'recipient':
echo '
' . esc_html( $email->is_customer_email() ? __( 'Customer', 'woocommerce' ) : $email->get_recipient() ) . '
| ';
break;
case 'status':
echo '';
if ( $email->is_manual() ) {
echo '' . esc_html__( 'Manual', 'woocommerce' ) . '';
} elseif ( $email->is_enabled() ) {
echo '' . esc_html__( 'Yes', 'woocommerce' ) . '';
} else {
echo '-';
}
echo ' | ';
break;
case 'email_type':
echo '
' . esc_html( $email->get_content_type() ) . '
| ';
break;
case 'actions':
echo '
' . esc_html__( 'Manage', 'woocommerce' ) . '
| ';
break;
default:
do_action( 'woocommerce_email_setting_column_' . $key, $email );
break;
}
}
echo '
';
}
?>