• How can I change/modify the Admin Email that is sent when Cache is full ? I am maintaining the site for a client that has their acct as the default admin. I need the ability to either change it or add my email so I know about the cache issue before the client emails me to fix it.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Frank Goossens

    (@futtta)

    you can hook into the API to do that, using the autoptimize_filter_cachecheck_mailto filter Thomas.

    have a nice weekend!
    frank

    Thread Starter Thomas Townsend

    (@smb-dev)

    Not quite sure how / where to do that. Can you provide a reference link ?

    Thanks

    Plugin Author Frank Goossens

    (@futtta)

    ah, it’s standard wordpress filter functionality, the following code snippet is an example;

    add_filter('autoptimize_filter_cachecheck_mailto','thomas_mailto');
    function thomas_mailto() {
        return "[email protected]";
    }

    you can use the “code snippets”-plugin to add it to wordpress or you could put it in your child theme’s functions.php (there’s a risk of updates, which would overwrite your change, though when altering a theme)

    frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Admin Email’ is closed to new replies.