Automattic\WooCommerce\Internal\StockNotifications\Admin
ListTable::column_sku
Handles the product SKU output.
Method of the class: ListTable{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ListTable = new ListTable(); $ListTable->column_sku( $notification );
- $notification(Notification) (required)
- The notification object.
ListTable::column_sku() ListTable::column sku code WC 10.3.6
public function column_sku( $notification ) {
$product = $notification->get_product();
$sku = false;
if ( is_a( $product, 'WC_Product' ) ) {
$sku = $product->get_sku();
}
if ( $sku ) {
echo wp_kses_post( $sku );
} else {
echo '—';
}
}