__('Invoice', $domain ), 'packing-slip' => __('Packing Slip', $domain ) ); // Set the action button foreach ( $slugs_label_names as $slug => $label_name ) { $actions[$slug] = array( 'url' => wp_nonce_url( admin_url( "admin-ajax.php?action=xc_woo_printer_job&document_type={$slug}&order_id=" . $order->get_id()), 'xc_woo_printer_job'), 'name' => $label_name, 'action' => $slug, ); } } return $actions; } // Set Here the WooCommerce icon for your action button add_action( 'admin_head', 'add_custom_print_actions_buttons_css' ); function add_custom_print_actions_buttons_css() { $slug_icons = array( 'invoice' => '\f497', // '\e02b', 'packing-slip' => '\f491', // '\e028', ); // Added Woocommerce compatibility version $class = version_compare( WC_VERSION, '3.3', '<' ) ? '.view.' : '.wc-action-button-'; echo ''; }