Automattic\WooCommerce\Internal\StockNotifications\Admin
ListTable::column_user
Handles the redeemed user column output.
Method of the class: ListTable{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ListTable = new ListTable(); $ListTable->column_user( $notification );
- $notification(Notification) (required)
- The notification object.
ListTable::column_user() ListTable::column user code WC 10.3.6
public function column_user( $notification ) {
if ( $notification->get_user_id() ) {
$user = get_user_by( 'id', $notification->get_user_id() );
}
if ( isset( $user ) && $user ) {
printf( '<a href="%s" target="_blank">%s</a>', esc_url( get_edit_user_link( $user->ID ) ), esc_html( $user->display_name ) );
} else {
echo esc_html( $notification->get_user_email() );
}
}