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);

Website & Email Hosting

Get the best website & email hosting for speed, security, and peace of mind. No restrictions. Freedom to do what you need in order to run your business.

Host Now

Pin It on Pinterest