Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created February 4, 2021 08:22
Show Gist options
  • Save xlplugins/bfcfab5b057e1c0a0719b9dccce5d7df to your computer and use it in GitHub Desktop.
Save xlplugins/bfcfab5b057e1c0a0719b9dccce5d7df to your computer and use it in GitHub Desktop.
unset link on xl thank you page
add_filter ( 'woocommerce_order_item_permalink' , '__return_false' );
add_action( 'woocommerce_account_downloads_column_download-product','xlwcty_remove_hyper_link_from_download_product');
function xlwcty_remove_hyper_link_from_download_product($download)
{
echo esc_html( $download['product_name'] );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment