• Resolved pelldom

    (@pelldom)


    For my site, the way this plugin adds the timestamp to the file names does not work for how we are utilizing it. How can I disable this function so that the files remain with the same unaltered file names when uploaded and then downloaded?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Lena Stergatou

    (@lenasterg)

    Hi. I wouldn’t suggest to do this, cause this could lead to overwrite existing file, if a user uploads a file with the same filename.
    Whoever, you can do this by removing the filter function
    'bp_group_documents_prepare_filename'
    from the filter hook 'bp_group_documents_filename_in'
    Example. Put the following in your theme’s functions.php file

    add_action( 'bp_init', 'ls_remove_group_document_timestamp_filter' );

    function ls_remove_group_document_timestamp_filter() {
    remove_filter( 'bp_group_documents_filename_in', 'bp_group_documents_prepare_filename' );
    }

Viewing 1 replies (of 1 total)
  • The topic ‘How do I Disable the time stamp added to file names?’ is closed to new replies.