Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin
Table::column_enabled
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() Table::column enabled WC 10.3.4
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' ) . '">–</mark>';
}