Justin Justin -4 years ago 86
PHP Question

Adding a button to woocommerce edit subscription page (admin)

How would I go about adding a custom button to the edit-subscription page.
I'm not sure of the hook to add it in here.

Any thoughts would be greatly appreciated.
Thank you!
enter image description here

Answer Source

I found the hook that is required to add your content here.

add_action( 'woocommerce_admin_order_data_after_order_details', 'after_order_details_func' );
function after_order_details_func() {
    echo '<button>Your Button</button>';
}

Hopefully that helps someone else browsing.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download