WordPress.org

Ready to get started?Download WordPress

Forums

How to add usleep to class-phpmailer.php by plugin? (2 posts)

  1. GrayHunter
    Member
    Posted 1 year ago #

    Each time after WP-update I have to modify class-phpmailer.php to add there 4 times this:
    usleep(300000);

    I need this to get/send all of the letters. Could you help me pls - what (code) should I put into a plugin (I am creating my own plugin for some things) to to add usleep to class-phpmailer.php by plugin(/hooks or smth else)?

  2. s_ha_dum
    Member
    Posted 1 year ago #

    class-phpmailer.php is a third party library used by WordPress. There aren't any hooks in it.

    If you can explain what you are doing and why you need to add usleep() (and where in the code) maybe there is a solution.

Topic Closed

This topic has been closed to new replies.

About this Topic