• Hi, before I do research on how I wanted to ask if it is possible. I want to write shortcodes that will give me the last time an audio file was replaced, the time and date. I want the audio file link followed by the shortcodes that tell this information.

    audio file [shortcode here]

    Thank you
    Kim

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you want to show the time stamp of the file, you can do that.
    But by default, the time stamp of a change in the database is not saved. If you save the time of replacement, you can show it, but it would only be valid for the ones you have saved since you added the code.

    Thread Starter Kimber254

    (@kimber254)

    Thank you for your help
    Kim

    • This reply was modified 5 years, 4 months ago by Kimber254.
    Moderator bcworkz

    (@bcworkz)

    If the modified date/time of a file in the server’s file system is what you are after, see
    https://www.php.net/manual/en/function.filemtime.php

    Since the shortcode handler would need to know the file path, you’d likely want the shortcode to output the link as well as the date/time since the shortcode handler has or can get the all needed information.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Create shortcodes Media Audio Files?’ is closed to new replies.