• Resolved haidepzai

    (@haidepzai)


    Hey guys,

    is there a way to disable the mail notification? I couldn’t find any settings.
    I also tried this snippet

    add_filter('autoptimize_filter_cachecheck_sendmail','__return_false');

    I added this in the functions.php but it doens’t work.
    Also I have Code Snippets plugin installed and tried with that as well but I still get mails.

    Is there another way?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    that filter should work, pretty weird it does not. you could also try

    add_filter('autoptimize_filter_cachecheck_mailto','__return_empty_string');
    or
    add_filter('autoptimize_filter_cachecheck_do','__return_false');

    and if those don’t work either (which they should), then you could uncomment out the relevant line in autoptimize/classes/autoptimizeCacheChecker.php?

    Thread Starter haidepzai

    (@haidepzai)

    Thank you! I will try that.
    I inserted that code into Code Snippets like that:

    CodeSnippets

    Is it ok?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    yep, looks OK ??

    portrayalteam

    (@portrayalteam)

    Trying again. I have tried all these snippets in code snippets to no effect. They keep getting emails every day and the cache is never over 50 Mb. LOL.

    Tried commenting out the actual code, but I guess I don’t know how to do it properly. Broke the site.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    No idea why that would happen (mail seven when cache is never over 50MB), but commenting out is changing

    
    $ao_mailresult = wp_mail( $ao_mailto, $ao_mailsubject, $ao_mailbody );

    into

    
    // $ao_mailresult = wp_mail( $ao_mailto, $ao_mailsubject, $ao_mailbody );

    in wp-content/plugins/autoptimize/classes/autoptimizeCacheChecker.php (on/ around line 70)

    hope this helps,
    frank

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Stop E-Mail notification’ is closed to new replies.