Add product ID to row actions
This commit is contained in:
parent
9eeac2f93a
commit
9aa4d81084
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue