latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Missing filter and action

Home Forums Community Forum Missing filter and action

This topic contains 0 replies, has 1 voice. Last updated by  Daniel B 3 years, 8 months ago.

Topic Author Topic
Posted: Sunday May 12th, 2013 at 1:54 pm #49783
Daniel B
Username: danielb

Hi,

Would it be possible to add a filter and an action to ‘check_file_download_access’ function? Currently I modify the file (files-in.inc.php) each time after an update by adding an additional filter and action.

1. Filter that allows me to modify the $req array.

$req = apply_filters( ‘ws_plugin__s2member_file_request_data’ , $req );

2. Action when the download file has been served. (Just above the exit /* Stop execution now (the file has been served). */(); file)

do_action(‘ws_plugin__s2member_download_finished’, $req);

Those two small changes would add more flexibility to your awesome plugin.

Best regards,
Daniel

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.