Skip to content

Instantly share code, notes, and snippets.

View mariomelchor's full-sized avatar

Mario Melchor | Senior Web Developer mariomelchor

View GitHub Profile
@mariomelchor
mariomelchor / functions.php
Created August 16, 2016 21:01 — forked from claudiosanches/functions.php
WooCommerce - Add Order Again button to My Orders actions
<?php
/**
* Add order again button in my orders actions.
*
* @param array $actions
* @param WC_Order $order
* @return array
*/
function cs_add_order_again_to_my_orders_actions( $actions, $order ) {
if ( $order->has_status( 'completed' ) ) {