Automattic\WooCommerce\Internal\StockNotifications\Admin

ListTable::column_idpublicWC 1.0

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() code WC 10.3.6

public function column_id( $notification ) {
	$actions = array(
		'edit'   => sprintf( '<a href="' . admin_url( NotificationsPage::PAGE_URL . '&notification_action=edit&notification_id=%d' ) . '">%s</a>', $notification->get_id(), __( 'Edit', 'woocommerce' ) ),
		'delete' => sprintf( '<a href="' . wp_nonce_url( admin_url( NotificationsPage::PAGE_URL . '&notification_action=delete&notification_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 . '&notification_action=edit&notification_id=' . $notification->get_id() ) ),
		/* translators: %s: Notification code */
		sprintf( esc_attr__( '&#8220;%s&#8221; (Edit)', 'woocommerce' ), esc_attr( $title ) ),
		esc_html( $title ),
		wp_kses_post( $this->row_actions( $actions ) )
	);
}