Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Add filters and constant to allow developers to disable plugins and themes autoupdate email notifications #57

Merged
merged 1 commit into from
Apr 4, 2020

Conversation

audrasjb
Copy link
Contributor

@audrasjb audrasjb commented Apr 3, 2020

Fixes #55

This PR adds two new functions, with two new hooks and constants.

Function wp_autoupdates_is_plugins_auto_update_email_enabled()

  • Filter: send_plugins_auto_update_email
  • Constant: WP_DISABLE_PLUGINS_AUTO_UPDATE_EMAIL

Function wp_autoupdates_is_themes_auto_update_email_enabled()

  • Filter: send_themes_auto_update_email
  • Constant: WP_DISABLE_THEMES_AUTO_UPDATE_EMAIL

@audrasjb audrasjb requested a review from pbiron April 3, 2020 23:15
@audrasjb audrasjb self-assigned this Apr 3, 2020
@audrasjb audrasjb added Core Merge Prerequisite This code that will require an update before merging to core enhancement New feature or request labels Apr 3, 2020
@audrasjb audrasjb added this to the 0.5.0 milestone Apr 3, 2020
Copy link
Contributor

@pbiron pbiron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT.

@pbiron pbiron merged commit e7a309b into master Apr 4, 2020
pbiron added a commit that referenced this pull request Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core Merge Prerequisite This code that will require an update before merging to core enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add filter to control whether the email notification is sent?
2 participants