Newsletters: Action – wpml_extensions_settings_saved

Description

wpml_extensions_settings_saved is fired after the Newsletters > Extensions > Settings tab settings form was submitted, posted and saved.

Arguments

$data (an Array of posted data from the settings).

Example

Below is an example of using the wpml_extensions_settings_saved hook.

function myfunc_extensions_settings_saved($data = null) {
	//do something with the $data Array

	if (!empty($data)) {
		foreach ($data as $dkey => $dval) {
			update_option($dkey, $dval);
		}
	}
}

add_action('wpml_extensions_settings_saved', 'myfunc_extensions_settings_saved', 10, 1);

Beautiful Newsletter Templates

Professional newsletter templates that are fully responsive for desktop, tablet, and mobile. They are 100% cross-client compatible.

See Them

Pin It on Pinterest