: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'folderName' => 'popup-builder-analytics',
'label' => __('Analytics', 'popup-builder')
'folderName' => 'popup-builder-exit-intent',
'label' => __('Exit intent', 'popup-builder')
'folderName' => 'popup-builder-mailchimp',
'label' => __('Mailchimp', 'popup-builder')
'folderName' => 'popup-builder-aweber',
'label' => __('AWeber', 'popup-builder')
public static function addFilters()
SGPBConfigDataHelper::addFilters();
public static function transientConfig()
global $SGPB_TRANSIENT_CONFIG;
$SGPB_TRANSIENT_CONFIG = array(
SGPB_TRANSIENT_POPUPS_LOAD,
SGPB_TRANSIENT_POPUPS_TERMS,
SGPB_TRANSIENT_POPUPS_ALL_CATEGORIES
$SGPB_TRANSIENT_CONFIG = apply_filters('sgpbAllTransients', $SGPB_TRANSIENT_CONFIG);
* method to get popup default conditions or other configs
public static function websiteDefaultConfigs() {
$eventsInitialData = array(
array('param' => 'load', 'value' => '', 'hiddenOption' => array())
$targetInitialData = array(
array('param' => 'everywhere')
$configs['events'] = apply_filters('sgPopupEventsInitialData', $eventsInitialData);
$configs['target'] = apply_filters('sgPopupTargetInitialData', $targetInitialData);