• xzuxzu

    (@xzuxzu)


    Hello,
    I need to deactivate the message displayed when users download files. I’ve made unlimited number of downloads thru the basic download settings, and the dialogs are really not necessary. I just don’t want to use shortcode, because I already have dozens of links. I know there are old tricks in the old forums, but they don’t work anymore with latests versions of S2 Members. So, does any one have a (simple) idea on how to disable the confirmation for all the site (javascript, function file…) ? thanks for the help.

    https://wordpress.org/plugins/s2member/

Viewing 1 replies (of 1 total)
  • KTS915

    (@kts915)

    Hmm, I’m using one of those “old tricks” and it still works fine for me.

    In the /wp-content folder, I have created another folder called mu-plugins, and then uploaded a file called s2-hacks.php into mu-plugins.

    In s2-hacks.php I have the following:

    <?php
    add_action("wp_head", "s2_skip_confirmation"); function s2_skip_confirmation()
    	{
    		echo '<script type="text/javascript">';
    		echo 'var ws_plugin__s2member_skip_all_file_confirmations = true;';
    		echo '</script>';
    	}
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Skip S2 member file confirmation on global basis’ is closed to new replies.