Skip to content

Commit

Permalink
FIX: wpml translation suuport foe email digest
Browse files Browse the repository at this point in the history
  • Loading branch information
nithinjohn22 committed Nov 6, 2024
1 parent ad8c99e commit 8871f6b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions wp-job-openings.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,13 @@ public static function get_timezone_string( $selected_zone ) {
}

public function send_email_digest() {
$to = get_option( 'awsm_hr_email_address' );
$enable_digest = get_option( 'awsm_jobs_email_digest' );
$to = get_option( 'awsm_hr_email_address' );
$enable_digest = get_option( 'awsm_jobs_email_digest' );
$current_user_id = get_current_user_id();
$locale = get_user_locale( $current_user_id );

self::set_current_language( $locale );

if ( $enable_digest === 'enable' ) {
if ( ! class_exists( 'AWSM_Job_Openings_Settings' ) ) {
require_once AWSM_JOBS_PLUGIN_DIR . '/admin/class-awsm-job-openings-settings.php';
Expand Down

0 comments on commit 8871f6b

Please sign in to comment.