Last active
July 13, 2021 17:20
-
-
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)
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
// 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