Automattic\WooCommerce\Internal\StockNotifications\Admin
ListTable::column_id
Handles the title column output.
Method of the class: ListTable{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ListTable = new ListTable(); $ListTable->column_id( $notification );
- $notification(Notification) (required)
- The notification object.
ListTable::column_id() ListTable::column id code WC 10.3.6
public function column_id( $notification ) {
$actions = array(
'edit' => sprintf( '<a href="' . admin_url( NotificationsPage::PAGE_URL . '¬ification_action=edit¬ification_id=%d' ) . '">%s</a>', $notification->get_id(), __( 'Edit', 'woocommerce' ) ),
'delete' => sprintf( '<a href="' . wp_nonce_url( admin_url( NotificationsPage::PAGE_URL . '¬ification_action=delete¬ification_id=%d' ), 'delete_customer_stock_notification' ) . '">%s</a>', $notification->get_id(), __( 'Delete', 'woocommerce' ) ),
);
$title = $notification->get_id();
printf(
'<a class="row-title" href="%s" aria-label="%s">#%s</a>%s',
esc_url( admin_url( NotificationsPage::PAGE_URL . '¬ification_action=edit¬ification_id=' . $notification->get_id() ) ),
/* translators: %s: Notification code */
sprintf( esc_attr__( '“%s” (Edit)', 'woocommerce' ), esc_attr( $title ) ),
esc_html( $title ),
wp_kses_post( $this->row_actions( $actions ) )
);
}