How can I list all private files with indication of size and download button?

Accueil Forums Main plugin support How can I list all private files with indication of size and download button?

Mots-clés : 

2 sujets de 1 à 2 (sur un total de 2)
  • Auteur
    Messages
  • #748494

    Dear support team,

    I use the current WordPress and plugin versions.

    My goal:
    Outputting ALL files assigned to an account on the dashboard page with the indication of the file size and the download button, so that the user DOES NOT have the need to click into a file single page before he can download the file.
    I wish a list with the following simple format:

    FILENAME – FILESIZE – DOWNLOADBUTTON

    Current behaviour:
    The dashboard page uses the shortcode [customer-area-dashboard /]. The user sees a list of files, but after clicking the file name he first gets directed to the file single page before he can download it.

    How can I achieve my goal?
    Is there a shortcode for outputting a list of files that includes download buttons?
    Or maybe I can use php code with a loop?

    #750293
    Vincent Mimoun-Prat
    Admin bbPress

    Hi

    You would indeed need to use PHP code

    You will need to use our template system documentation and the functions from src/php/functions/private-files to do what you need.

2 sujets de 1 à 2 (sur un total de 2)
  • Vous devez être connecté pour répondre à ce sujet.