Add different style to downloaded file and not

    • Daniele Cavazzin
      Participant
      # il y a 1 année et 10 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
      Maître des clés
      # il y a 1 année et 10 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.