Add product ID to row actions

This commit is contained in:
Caleb Burks 2018-02-01 01:01:49 -05:00
parent 9eeac2f93a
commit 9aa4d81084
1 changed files with 11 additions and 0 deletions

View File

@ -63,6 +63,17 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table {
return 'name'; return 'name';
} }
/**
* Get row actions to show in the list table.
*
* @param array $actions Array of actions.
* @param WP_Post $post Current post object.
* @return array
*/
protected function get_row_actions( $actions, $post ) {
return array_merge( array( 'id' => 'ID: ' . $post->ID ), $actions );
}
/** /**
* Define which columns are sortable. * Define which columns are sortable.
* *