• Resolved joebarrettaccess

    (@joebarrettaccess)


    I’m getting a fatal error on my SMTP plugin, it says another plugin is calling wp_mail too early. This is just what I was told by ai.

           private static function require_pluggable_essentials() {
    if ( ! function_exists( 'wp_get_current_user' ) ) {
    require_once ABSPATH . 'wp-includes/pluggable.php';
    }
    }
    private static function require_pluggable_essentials() {
    // No-op. WordPress core loads pluggable.php on its own.
    // This avoids forcing wp_mail() to be defined early.
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘pluggable called too early for SMTP plugins’ is closed to new replies.