utilities
1 year ago
ehssl-config.php
1 year ago
ehssl-cronjob.php
1 year ago
ehssl-custom-post-types.php
1 year ago
ehssl-debug-logger.php
1 year ago
ehssl-email-handler.php
1 year ago
ehssl-init-time-tasks.php
1 year ago
ehssl-rules-helper.php
1 year ago
ehssl-ssl-certificate.php
1 year ago
index.php
1 year ago
ehssl-cronjob.php
19 lines
| 1 | <?php |
| 2 | |
| 3 | class EHSSL_Cronjob{ |
| 4 | |
| 5 | public function __construct() { |
| 6 | add_action('ehssl_daily_cron_event', array( $this, 'handle_daily_cron_event' ) ); |
| 7 | } |
| 8 | |
| 9 | public function handle_daily_cron_event(){ |
| 10 | EHSSL_Logger::log( 'Executing daily cron job event...' ); |
| 11 | |
| 12 | EHSSL_SSL_Utils::check_and_save_current_cert_info(); |
| 13 | EHSSL_SSL_Utils::check_and_send_notification_emails(); |
| 14 | |
| 15 | EHSSL_Logger::log( 'Daily cron job execution finished.' ); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | new EHSSL_Cronjob(); |