Add different style to downloaded file and not

    • Daniele Cavazzin
      Participant
      # il y a 2 années et 7 mois

      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
      # il y a 2 années et 7 mois

      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)

      `

Vous lisez 1 fil de discussion

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