| 3360 | |
| 3361 | /** |
| 3362 | * Filter to receive notification emails on plugins. |
| 3363 | * |
| 3364 | * By default, administrators are notified when the update offer received |
| 3365 | * from WordPress.org sets a particular flag. This allows some discretion |
| 3366 | * in if and when to notify. |
| 3367 | * |
| 3368 | * This filter is only evaluated once per plugin update |
| 3369 | *. |
| 3370 | * |
| 3371 | * @since 4.4.0 |
| 3372 | * |
| 3373 | * @param bool $notify Whether the site administrator is notified. |
| 3374 | * @param string $type The type of update (plugin, theme, translation). |
| 3375 | */ |
| 3376 | if ( 'plugin' == $type && !apply_filters( 'send_plugin_update_notification_email', true, $type ) ) { |
| 3377 | return; |
| 3378 | |
| 3379 | /** |
| 3380 | * Filter to receive notification emails on themes. |
| 3381 | * |
| 3382 | * By default, administrators are notified when the update offer received |
| 3383 | * from WordPress.org sets a particular flag. This allows some discretion |
| 3384 | * in if and when to notify. |
| 3385 | * |
| 3386 | * This filter is only evaluated once per theme update |
| 3387 | *. |
| 3388 | * |
| 3389 | * @since 4.4.0 |
| 3390 | * |
| 3391 | * @param bool $notify Whether the site administrator is notified. |
| 3392 | * @param string $type The type of update (plugin, theme, translation). |
| 3393 | */ |
| 3394 | } elseif( 'theme' == $type && !apply_filters( 'send_theme_update_notification_email', true, $type ) ) { |
| 3395 | return; |
| 3396 | |
| 3397 | /** |
| 3398 | * Filter to receive notification emails on translations. |
| 3399 | * |
| 3400 | * By default, administrators are notified when the update offer received |
| 3401 | * from WordPress.org sets a particular flag. This allows some discretion |
| 3402 | * in if and when to notify. |
| 3403 | * |
| 3404 | * This filter is only evaluated once per translation update |
| 3405 | *. |
| 3406 | * |
| 3407 | * @since 4.4.0 |
| 3408 | * |
| 3409 | * @param bool $notify Whether the site administrator is notified. |
| 3410 | * @param string $type The type of update (plugin, theme, translation). |
| 3411 | */ |
| 3412 | } elseif( 'translation' == $type && !apply_filters( 'send_translation_update_notification_email', true, $type ) ) { |
| 3413 | return; |
| 3414 | } |