Main Menu
Sub Menu

wpdm_button_image

Description


If you want to change Package download link to image, or if you want to change default download label to something else you can use this hook.

Parameters


Two arguments are passed to this hook.

Usage


To change download link text to an image or other text.
add_filter('wpdm_button_image','my_btn_image',10,2);

Examples


<?php
add_filter('wpdm_button_image','my_btn_image',10,2);
function my_btn_image($link_label,$package){
    $link_label = "<img src='img/source' >";
    return $link_label;
}
?>

Related


Last updated on Jun 29, 2014