Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin

Table::column_enabled()publicWC 1.0

Rule-is-enabled column.

Метод класса: Table{}

Хуков нет.

Возвращает

Строку.

Использование

$Table = new Table();
$Table->column_enabled( $item ): string;
$item(StoredUrl) (обязательный)
The approved directory information for the current row.

Код Table::column_enabled() WC 8.7.0

public function column_enabled( StoredUrl $item ): string {
	return $item->is_enabled()
		? '<mark class="yes" title="' . esc_html__( 'Enabled', 'woocommerce' ) . '"><span class="dashicons dashicons-yes"></span></mark>'
		: '<mark class="no" title="' . esc_html__( 'Disabled', 'woocommerce' ) . '">&ndash;</mark>';
}