文件操作 - Notifier.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/rokpaw/public_html/wp-content/plugins/wp-mail-smtp-pro/src/Pro/Alerts/Notifier.php
编辑文件内容
<?php namespace WPMailSMTP\Pro\Alerts; use WPMailSMTP\Pro\Alerts\Handlers\HandlerInterface; /** * Class Notifier. * * @since 3.5.0 */ class Notifier { /** * Registered handlers. * * @since 3.5.0 * * @var HandlerInterface[] */ private $handlers = []; /** * Register handler. * * @since 3.5.0 * * @param HandlerInterface $handler Handler object. */ public function push_handler( HandlerInterface $handler ) { $this->handlers[] = $handler; } /** * Send notification via registered handlers. * * @since 3.5.0 * * @param Alert $alert Alert object. */ public function notify( Alert $alert ) { foreach ( $this->handlers as $handler ) { if ( ! $handler->can_handle( $alert ) ) { continue; } $handler->handle( $alert ); } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件