• Resolved andreu

    (@andreu)


    Hi,
    It seems that plugin is not tracking Buddypress emails. Is that possible? Any way to add them to the log?
    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sudar Muthu

    (@sudar)

    Hello @andreu

    Ideally even emails from Buddypress should be logged.

    Is there any specific email that is not getting logged or all emails from Buddypress are not getting logged?

    Thread Starter andreu

    (@andreu)

    Hi,
    I see that no emails from BuddyPress are tracked. It’s strange because WooCommerce ones are tracked, for example.
    Any idea?
    Thanks

    Plugin Author Sudar Muthu

    (@sudar)

    Hello @andreu

    We checked the Buddypress plugin’s source code and found that by default they are not using WordPress core’s wp_mail function to send email.

    Here is the relevant line in the Buddypress plugin’s source code where that switch happens – https://github.com/buddypress/BuddyPress/blob/master/src/bp-core/bp-core-functions.php#L3176

    Our plugin depends on the filters that are called inside the wp_mail function to log the email. If that function is not called, then it is not possible for us to log the email.

    You can add the following line in either your themes function.php file or as a seperate plugin to force Buddypress to use WordPress core’s wp_mail function

    add_filter( 'bp_email_use_wp_mail', '__return_true' )

    Meanwhile we are also trying to explore ways by which we can add BuddyPress support by using any of the existing BuddyPress specific hooks. You can keep track of our progress at https://github.com/sudar/email-log/issues/249

    Thread Starter andreu

    (@andreu)

    Hi Sudar,

    Thanks for taking a look at this.

    I will use this filter for now, I hope you find a way to integrate BP’s emails into your plugin too ??

    Thank you for the great work on this plugin!

    Plugin Author Sudar Muthu

    (@sudar)

    Hello @andreu

    We just released v2.3.2 of the plugin which adds a compatibility layer to log emails from BuddyPress.

    Please try it out and let us know if you have any feedback.

    Thread Starter andreu

    (@andreu)

    Thank you. I will give it a try ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Buddypress emails do not appear in the log’ is closed to new replies.