Skip to content

Instantly share code, notes, and snippets.

@MarceloGlez
Last active July 13, 2021 17:20
Show Gist options
  • Save MarceloGlez/47bb95270f5c0e0f09add4ef7c19f6f4 to your computer and use it in GitHub Desktop.
Save MarceloGlez/47bb95270f5c0e0f09add4ef7c19f6f4 to your computer and use it in GitHub Desktop.
Quitar enlace al producto en Mis descargas en Woocommerce (Agregar líneas de código en function.php del child theme)
// Quitar enlace al nombre de producto en mis descargas
add_action( 'woocommerce_account_downloads_column_download-product', 'custom_account_downloads_product_column' );
function custom_account_downloads_product_column( $download ){
// Display the product name without the link
echo esc_html( $download['product_name'] );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment