Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

MP_Addon_ConstantContact::set_lists( array $data )

Set constant contact lists.


Parameters Parameters

$data

(array) (Required) lists


Top ↑

Return Return

(bool) True if the value was updated, false otherwise.


Top ↑

Source Source

File: calculator-constant-contact-add-on/inc/MP_Addon_ConstantContact.php

	private function set_lists($data){

		$lists = array('default'=>'');

		if(isset($data['lists']) && !empty($data['lists'])){
			foreach ($data['lists'] as $list){
				$lists[$list['list_id']] = $list['name'];
			}
		}

		$result = update_option( MortgagePlatform::$prefix . 'constant_contact_lists', $lists );

		return $result;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.