Automattic\WooCommerce\EmailEditor\Integrations\Utils
Table_Wrapper_Helper::render_table_cell
Render a table cell.
Метод класса: Table_Wrapper_Helper{}
Хуков нет.
Возвращает
string. The generated table cell HTML.
Использование
$result = Table_Wrapper_Helper::render_table_cell( $content, $cell_attrs ): string;
- $content(строка) (обязательный)
- The content to wrap.
- $cell_attrs(массив)
- Cell attributes.
По умолчанию:array()
Код Table_Wrapper_Helper::render_table_cell() Table Wrapper Helper::render table cell WC 11.2.2
public static function render_table_cell(
string $content,
array $cell_attrs = array()
): string {
$cell_attr_string = self::build_attributes_string( $cell_attrs );
return sprintf(
'<td%1$s>%2$s</td>',
$cell_attr_string ? ' ' . $cell_attr_string : '',
$content
);
}