Skip to content

Instantly share code, notes, and snippets.

View ragudesign's full-sized avatar
💭
Busy coding :)

Ragu ragudesign

💭
Busy coding :)
View GitHub Profile
@ragudesign
ragudesign / woo-thankyou-page-action.php
Last active April 26, 2019 12:29
Adds a new action button on the WooCommerce order list to view the thank you page for each order.
<?php
// Add a new action button for the thank you page for each order
// WooCommerce version 3.3+
add_action( 'woocommerce_admin_order_actions_end', 'add_thankyou_page_action_button', 100, 1 );
function add_thankyou_page_action_button( $order ) {
// Add more order status here
if ( $order->has_status( array( 'processing', 'completed', 'partial-comp' ) ) ) {