Filter “Download Link” not being called

in Download Manager Free

Viewing 2 posts - 1 through 2 (of 2 total)
Aug 14, 2021 at 11:05 pm
#159792
Participant
Ron Barack
OP

The filter https://www.wpdownloadmanager.com/doc/filter-reference/download_link/ . This is a documented API which I thought I could assume to be stable. The filter wpdm_download_link is not a good replacement, since the package information is not passed as an argument.

Aug 15, 2021 at 6:55 am
#159808
Keymaster
Shahjada
Staff

Filter hook wpdm_download_link and download_link works differently.
wpdm_download_link accept 2 parameters 1st parameter is download link html code, 2nd parameter is an array just contaiting package ID, ['ID' ► {Package ID}], and inside the filter to can retrieve package date using the give ID, $packageObject = WPDM()->package->init($param2['ID']);

and download_link filter is documented here https://www.wpdownloadmanager.com/doc/filter-reference/download_link/

However, please let me know what are you trying to do, so that I can explain your better :).

Viewing 2 posts - 1 through 2 (of 2 total)

The topic "Filter “Download Link” not being called" is closed to new replies.