Created
October 2, 2014 14:13
-
-
Save woogist/71227695ccf97b62c60e to your computer and use it in GitHub Desktop.
Show the order payment URL on the admin order page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_admin_order_data_after_order_details', 'woo_show_order_payment_url' ); | |
function woo_show_order_payment_url( $order ) { | |
echo '<a href="' . $order->get_checkout_payment_url() . '" title="' . __( 'Get order payment URL', 'your-domain' ) . '" target="_blank">' . __( 'Get order payment URL', 'your-domain' ) . '</a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment