Automattic\WooCommerce\EmailEditor\Integrations\Utils
Table_Wrapper_Helper::render_outlook_table_cell
Render an Outlook-specific table cell using conditional comments.
Метод класса: Table_Wrapper_Helper{}
Хуков нет.
Возвращает
string. The generated table cell HTML with Outlook conditionals.
Использование
$result = Table_Wrapper_Helper::render_outlook_table_cell( $content, $cell_attrs ): string;
- $content(строка) (обязательный)
- The content to wrap.
- $cell_attrs(массив)
- Cell attributes.
По умолчанию:array()
Код Table_Wrapper_Helper::render_outlook_table_cell() Table Wrapper Helper::render outlook table cell WC 11.2.2
public static function render_outlook_table_cell(
string $content,
array $cell_attrs = array()
): string {
$content_with_outlook_conditional = '<![endif]-->' . $content . '<!--[if mso | IE]>';
return '<!--[if mso | IE]>' . self::render_table_cell( $content_with_outlook_conditional, $cell_attrs ) . '<![endif]-->';
}