X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/plugins/wp-mail-smtp/src
home
/
oakwood
/
public_html
/
wp-content
/
plugins
/
wp-mail-smtp
/
src
/
ðŸ“
..
📄
AbstractConnection.php
(1.09 KB)
ðŸ“
Admin
ðŸ“
Compatibility
📄
Conflicts.php
(15.01 KB)
📄
Connect.php
(9.18 KB)
📄
Connection.php
(964 B)
📄
ConnectionInterface.php
(1.01 KB)
📄
ConnectionsManager.php
(765 B)
📄
Core.php
(33.45 KB)
📄
DBRepair.php
(6.29 KB)
📄
Debug.php
(3.5 KB)
📄
Geo.php
(6.76 KB)
ðŸ“
Helpers
📄
MailCatcher.php
(1.63 KB)
📄
MailCatcherInterface.php
(1.16 KB)
📄
MailCatcherTrait.php
(13.43 KB)
📄
MailCatcherV6.php
(1.47 KB)
📄
Migration.php
(12.11 KB)
📄
MigrationAbstract.php
(3.21 KB)
📄
Migrations.php
(3.59 KB)
📄
OptimizedEmailSending.php
(1.17 KB)
📄
Options.php
(46.44 KB)
📄
Processor.php
(14.06 KB)
ðŸ“
Providers
ðŸ“
Queue
ðŸ“
Reports
📄
SiteHealth.php
(12.63 KB)
ðŸ“
Tasks
📄
Upgrade.php
(1.55 KB)
📄
Uploads.php
(5.44 KB)
ðŸ“
UsageTracking
📄
WP.php
(20.08 KB)
📄
WPMailArgs.php
(4.44 KB)
📄
WPMailInitiator.php
(4.38 KB)
Editing: OptimizedEmailSending.php
<?php namespace WPMailSMTP; /** * OptimizedEmailSending class. * * @since 4.0.0 */ class OptimizedEmailSending { /** * The slug of the option that toggles optimized email sending. * * @since 4.0.0 */ const SETTINGS_SLUG = 'optimize_email_sending_enabled'; /** * Register hooks. * * @since 4.0.0 */ public function hooks() { if ( self::is_enabled() ) { // Enable the queue. add_filter( 'wp_mail_smtp_queue_is_enabled', '__return_true' ); // Avoid enqueueing emails if current request // is a cron request, a CLI request, // or an ActionScheduler task as 3rd party plugins might // be carrying out their own sending optimizations // through it. if ( ! ( defined( 'WP_CLI' ) && WP_CLI ) && ! wp_doing_cron() && ! doing_action( 'action_scheduler_run_queue' ) ) { // Start enqueueing emails. add_filter( 'wp_mail_smtp_mail_catcher_send_enqueue_email', '__return_true' ); } } } /** * Whether optimized email sending is enabled. * * @since 4.0.0 * * @return bool */ public static function is_enabled() { $value = Options::init()->get( 'general', self::SETTINGS_SLUG ); return (bool) $value; } }
Upload File
Create Folder