Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
Inside the file, do this with PHP code.
- Code: Select all
<?php
add_filter("ws_plugin__s2member_files_dir", "my_files_dir");
function my_files_dir(){ return "/usr/home/path/to/files"; }
?>
For a custom logs directory, the process is the same:
- Code: Select all
<?php
add_filter("ws_plugin__s2member_files_dir", "my_files_dir");
function my_files_dir(){ return "/usr/home/path/to/files"; }
add_filter("ws_plugin__s2member_logs_dir", "my_logs_dir");
function my_logs_dir(){ return "/usr/home/path/to/logs"; }
?>