Support » Plugin: My Downloads Shortcode for WooCommerce » Want to show Name instead of File

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matt Pramschufer


    I currently do not have a filter for that… It goes off of the name of the file.

    What you could do is edit the template in the plugin file


    You will see the following line:

    <?php echo apply_filters( 'woocommerce_available_download_link', '<a href="' . esc_url( $download['download_url'] ) . '" class="wc-my-downloads-download-link">' . $download['download_name'] . '</a>', $download ); ?>

    You could change $download['download_name'] to be $download['product_name']

    I will work on releasing a new version which has the ability to have a flag in the shortcode to show product name verse the download name.

    Wow, was easier than I thought, many thanks! If I were you I would integrate it in the plugin, there is no plugin for doing that 😀

    Plugin Author Matt Pramschufer


    Excellent! I have been meaning to overhaul this plugin anyway, so hopefully in the next couple of months I will get a new revised version out with this feature built in for you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Want to show Name instead of File’ is closed to new replies.