Add different style to downloaded file and not

    • Daniele Cavazzin
      Participant
      # 8 months, 3 weeks 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?

    • # 8 months, 2 weeks 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.