WC_Admin_List_Table_Products::get_row_actions()protectedWC 1.0

Get row actions to show in the list table.

Method of the class: WC_Admin_List_Table_Products{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_row_actions( $actions, $post );
$actions(array) (required)
Array of actions.
$post(WP_Post) (required)
Current post object.

WC_Admin_List_Table_Products::get_row_actions() code WC 9.3.3

protected function get_row_actions( $actions, $post ) {
	/* translators: %d: product ID. */
	return array_merge( array( 'id' => sprintf( __( 'ID: %d', 'woocommerce' ), $post->ID ) ), $actions );
}