Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin
Table::column_enabled
Rule-is-enabled column.
Method of the class: Table{}
No Hooks.
Returns
String.
Usage
$Table = new Table(); $Table->column_enabled( $item ): string;
- $item(StoredUrl) (required)
- The approved directory information for the current row.
Table::column_enabled() Table::column enabled code WC 10.8.1
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>';
}