: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'Pacific/Noumea' => '(GMT+11:00) Noumea',
'Pacific/Pohnpei' => '(GMT+11:00) Ponape',
'Pacific/Norfolk' => '(GMT+11:30) Norfolk',
'Asia/Kamchatka' => '(GMT+12:00) Moscow+08 - Petropavlovsk-Kamchatskiy',
'Pacific/Auckland' => '(GMT+12:00) Auckland',
'Pacific/Fiji' => '(GMT+12:00) Fiji',
'Pacific/Funafuti' => '(GMT+12:00) Funafuti',
'Pacific/Kwajalein' => '(GMT+12:00) Kwajalein',
'Pacific/Majuro' => '(GMT+12:00) Majuro',
'Pacific/Nauru' => '(GMT+12:00) Nauru',
'Pacific/Tarawa' => '(GMT+12:00) Tarawa',
'Pacific/Wake' => '(GMT+12:00) Wake',
'Pacific/Wallis' => '(GMT+12:00) Wallis',
'Pacific/Apia' => '(GMT+13:00) Apia',
'Pacific/Enderbury' => '(GMT+13:00) Enderbury',
'Pacific/Fakaofo' => '(GMT+13:00) Fakaofo',
'Pacific/Tongatapu' => '(GMT+13:00) Tongatapu',
'Pacific/Kiritimati' => '(GMT+14:00) Kiritimati'
public static function getJsLocalizedData()
'imageSupportAlertMessage' => __('Only image files supported', 'popup-builder'),
'pdfSupportAlertMessage' => __('Only pdf files supported', 'popup-builder'),
'areYouSure' => __('Are you sure?', 'popup-builder'),
'addButtonSpinner' => __('L', 'popup-builder'),
'audioSupportAlertMessage' => __('Only audio files supported (e.g.: mp3, wav, m4a, ogg)', 'popup-builder'),
'publishPopupBeforeElementor' => __('Please, publish the popup before starting to use Elementor with it!', 'popup-builder'),
'publishPopupBeforeDivi' => __('Please, publish the popup before starting to use Divi Builder with it!', 'popup-builder'),
'closeButtonAltText' => __('Close', 'popup-builder')
public static function getCurrentDateTime()
return gmdate('Y-m-d H:i', strtotime(' +1 day'));
public static function getDefaultTimezone()
$timezone = get_option('timezone_string');
$timezone = 'America/New_York';