WC_Admin_List_Table_Products::get_row_actions
Get row actions to show in the list table.
Method of the class: WC_Admin_List_Table_Products{}
No Hooks.
Returns
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() WC Admin List Table Products::get row actions code WC 10.3.6
protected function get_row_actions( $actions, $post ) {
/* translators: %d: product ID. */
return array_merge( array( 'id' => sprintf( __( 'ID: %d', 'woocommerce' ), $post->ID ) ), $actions );
}