/home/desid573/verdenaturopathy.com.au/wp-content/themes/Divi/core/components/api/email
NameSizeModeActions
ActiveCampaign.php83500644editdlrm
Aweber.php59480644editdlrm
CampaignMonitor.php63810644editdlrm
ConstantContact.php264210644editdlrm
ConvertKit.php56690644editdlrm
Emma.php38030644editdlrm
Feedblitz.php41730644editdlrm
Fields.php159540644editdlrm
FluentCRM.php97890644editdlrm
GetResponse.php41480644editdlrm
HubSpot.php97960644editdlrm
iContact.php70470644editdlrm
Infusionsoft.php120000644editdlrm
init.php43790644editdlrm
MadMimi.php37530644editdlrm
MailChimp.php96580644editdlrm
MailerLite.php31100644editdlrm
MailPoet.php26720644editdlrm
Mailster.php56750644editdlrm
Ontraport.php76490644editdlrm
Provider.php108770644editdlrm
Providers.php95780644editdlrm
SalesForce.php118170644editdlrm
SendinBlue.php89370644editdlrm
_MailPoet2.php40610644editdlrm
_MailPoet3.php54930644editdlrm
_ProviderName.php14750644editdlrm
Edit: /home/desid573/verdenaturopathy.com.au/wp-content/themes/Divi/core/components/api/email/init.php (4379B)
accounts(); foreach ( $all_accounts as $provider_slug => $accounts ) { $provider = $providers->get( $provider_slug, '' ); foreach ( $accounts as $account ) { $provider->set_account_name( $account ); $provider->fetch_subscriber_lists(); } } } endif; if ( ! function_exists( 'et_core_api_email_fetch_lists' ) ) : /** * Fetch the latest email lists for a provider account and update the database accordingly. * * @param string $name_or_slug The provider name or slug. * @param string $account The account name. * @param string $api_key Optional. The api key (if fetch succeeds, the key will be saved). * * @return string 'success' if successful, an error message otherwise. */ function et_core_api_email_fetch_lists( $name_or_slug, $account, $api_key = '' ) { if ( ! empty( $api_key ) ) { // The account provided either doesn't exist yet or has a new api key. et_core_security_check( 'manage_options' ); } if ( empty( $name_or_slug ) || empty( $account ) ) { return __( 'ERROR: Invalid arguments.', 'et_core' ); } $providers = ET_Core_API_Email_Providers::instance(); $provider = $providers->get( $name_or_slug, $account, 'builder' ); if ( ! $provider ) { return ''; } if ( is_array( $api_key ) ) { foreach ( $api_key as $field_name => $value ) { $provider->data[ $field_name ] = sanitize_text_field( $value ); } } elseif ( '' !== $api_key ) { $provider->data['api_key'] = sanitize_text_field( $api_key ); } // Set account name if not already set. if ( ! $provider->account_name ) { $provider->set_account_name( $account ); } // Save account data before initiating OAuth flow so it exists when callback returns. $provider->save_data(); return $provider->fetch_subscriber_lists(); } endif; if ( ! function_exists( 'et_core_api_email_providers' ) ) : /** * Get the email providers instance. * * @deprecated {@see ET_Core_API_Email_Providers::instance()} * * @return ET_Core_API_Email_Providers */ function et_core_api_email_providers() { return ET_Core_API_Email_Providers::instance(); } endif; if ( ! function_exists( 'et_core_api_email_remove_account' ) ) : /** * Delete an existing provider account. * * @param string $name_or_slug The provider name or slug. * @param string $account The account name. */ function et_core_api_email_remove_account( $name_or_slug, $account ) { et_core_security_check( 'manage_options' ); if ( empty( $name_or_slug ) || empty( $account ) ) { return; } // If the account being removed is a legacy account (pre-dates core api), remove the old data. switch ( $account ) { case 'Divi Builder Aweber': et_delete_option( 'divi_aweber_consumer_key' ); et_delete_option( 'divi_aweber_consumer_secret' ); et_delete_option( 'divi_aweber_access_key' ); et_delete_option( 'divi_aweber_access_secret' ); break; case 'Divi Builder Plugin Aweber': $opts = (array) get_option( 'et_pb_builder_options' ); unset( $opts['aweber_consumer_key'], $opts['aweber_consumer_secret'], $opts['aweber_access_key'], $opts['aweber_access_secret'] ); update_option( 'et_pb_builder_options', $opts ); break; case 'Divi Builder MailChimp': et_delete_option( 'divi_mailchimp_api_key' ); break; case 'Divi Builder Plugin MailChimp': $options = (array) get_option( 'et_pb_builder_options' ); unset( $options['newsletter_main_mailchimp_key'] ); update_option( 'et_pb_builder_options', $options ); break; } $providers = ET_Core_API_Email_Providers::instance(); $provider = $providers->get( $name_or_slug, $account ); if ( $provider ) { $provider->delete(); } } endif;