Add different style to downloaded file and not

    • Daniele Cavazzin
      Participant
      # 2 years, 7 months ago

      Hi! I have notification add on so there is a metafield with the numebrs of downloaded.

      How can i call the funciton to know how many times a file is downloaded?

    • Vincent Mimoun-Prat
      Participant
      # 2 years, 7 months ago

      Here is how you could do it with code:

       

      `

      /** @var CUAR_PrivateFileAddOn $pf_addon */
      $pf_addon = cuar_addon('private-files');
      $downloadCount = $pf_addon->get_file_download_count($post_id, $file_id, $user_id)

      `

Viewing 1 reply thread

The topic ‘Add different style to downloaded file and not’ is closed to new replies.