wordpress/wp-content/themes/basic/themify/themify-builder/includes/optin-services/base.php
/**
	 * Initialize data providers for the module
	 *
	 * Other plugins or themes can extend or add to this list
	 * by using the "builder_optin_services" filter.
	 */
Initialize data providers for the module
Other plugins or themes can extend or add to this list
by using the "builder_optin_services" filter.
Initialize data providers for the module Other plugins or themes can extend or add to this list by using the " builder_optin_services " filter .
private static function init_providers($type='all') {
		$dir = trailingslashit( dirname( __FILE__ ) );
		$providers = apply_filters( 'builder_optin_services', array(
			'mailchimp' => 'Builder_Optin_Service_MailChimp',
			'activecampaign' => 'Builder_Optin_Service_ActiveCampaign',
			'convertkit' => 'Builder_Optin_Service_ConvertKit',
			'getresponse' => 'Builder_Optin_Service_GetResponse',
			'mailerlite' => 'Builder_Optin_Service_MailerLite',
			'newsletter' => 'Builder_Optin_Service_Newsletter',
		) );
		if($type!=='all'){
			if(!isset($providers[$type])){
				return false;
			}
			$providers=array($type=>$providers[$type]);
		}
		foreach ( $providers as $id => $provider ) {
			if(!isset(self::$providers[ $id ])){
				if(is_file($dir . '/'.$id.'.php')){
					include_once( $dir . '/'.$id.'.php' );
				}
				if ( class_exists( $provider ) ) {
					self::$providers[ $id ] = new $provider();
				}
			}
		}
	}
private static function init_providers ( $ type = 'all' ) { $ dir = trailingslashit ( dirname ( __FILE__ ) ) ; $ providers = apply_filters ( 'builder_optin_services' , array ( 'mailchimp' => 'Builder_Optin_Service_MailChimp' , 'activecampaign' => 'Builder_Optin_Service_ActiveCampaign' , 'convertkit' => 'Builder_Optin_Service_ConvertKit' , 'getresponse' => 'Builder_Optin_Service_GetResponse' , 'mailerlite' => 'Builder_Optin_Service_MailerLite' , 'newsletter' => 'Builder_Optin_Service_Newsletter' , ) ) ; if ( $ type !== 'all' ) { if ( ! isset ( $ providers [ $ type ] ) ) { return false ; } $ providers = array ( $ type => $ providers [ $ type ] ) ; } foreach ( $ providers as $ id => $ provider ) { if ( ! isset ( self :: $ providers [ $ id ] ) ) { if ( is_file ( $ dir . '/' . $ id . '.php' ) ) { include_once ( $ dir . '/' . $ id . '.php' ) ; } if ( class_exists ( $ provider ) ) { self :: $ providers [ $ id ] = new $ provider ( ) ; } } } }
Initialize data providers for the module
 Other plugins or themes can extend or add to this list
 by using the "builder_optin_services" filter.
Initialize data providers for the module Other plugins or themes can extend or add to this list by using the " builder_optin_services " filter .