| 1 |
<?php |
| 2 |
|
| 3 |
if (sendwp_forwarding_enabled()) { |
| 4 |
add_action('phpmailer_init', [ \SendWP\mailer::class, 'factory' ]); |
| 5 |
} |
| 6 |
|
| 7 |
if( defined( 'WP_DEBUG' ) && WP_DEBUG ){ |
| 8 |
add_filter( 'https_local_ssl_verify', '__return_false' ); |
| 9 |
add_filter( 'https_ssl_verify', '__return_false' ); |
| 10 |
} |
| 11 |
|
| 12 |
add_action('admin_notices', 'sendwp_forwarding_disabled_notice'); |
| 13 |
add_action('wp_ajax_sendwp_forwarding', 'sendwp_maybe_disable_forwarding'); |
| 14 |
|
| 15 |
// Register our pulse monitor. |
| 16 |
add_action('init', 'sendwp_connect_pulse_monitor'); |
| 17 |
add_action('sendwp_heartbeat', 'sendwp_pulse_monitor'); |
| 18 |
|
| 19 |
add_action('init', 'sendwp_update_client_connection'); |
| 20 |
add_action('init', 'sendwp_get_client_status'); |