Support » Plugin: Mail Bank - #1 Mail SMTP Plugin for WordPress » Bug that breaks other plugins

  • Refer to this screenshot to see what I’m referring to. apply_filters( 'wp_mail', 'wp_mail' ); apparently serves no purpose there, instead breaks other plugins that hook into wp_mail and expect the argument passed to be an array.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Varun Sharma


    This is being done to override the wp_mail function to register email logs.

    The wp_mail function accepts arguments as an array.

    The reason of the confliction, might be using two mail plugins on your website.

    You cannot use two mail smtp plugins at the same time.

    Thanks & Regards.

    Thread Starter Manzoor Wani


    I don’t use your plugin. I’m a plugin developer. I guess you have either made a mistake or you don’t know what apply_filters does.

    Let me explain:

    By calling apply_filters with wp_mail as the tag, it will call all the callbacks hooked into wp_mail filter and will pass 'wp_mail' (string) value as the parameter.

    Did you want to use add_filter instead? Which I again doubt, as it will create a loop (may be infinite)if you pass 'wp_mail' string as the second parameter.

    Thread Starter Manzoor Wani


    You can see here how it works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug that breaks other plugins’ is closed to new replies.