Newsletters: Action – wpml_field_saved

Description

wpml_field_saved is fired after a custom field has been saved.

Arguments

$field_id (ID of the field which was saved), $data (an Array of data for the saved field)

Example

Below is an example of how to use the wpml_field_saved action hook.

function myfunc_field_saved($field_id = null, $data = null) {
	echo 'Field ID is: ' . $field_id;
	//do something with the $data Array if you want to.
}

add_action('wpml_field_saved', 'myfunc_field_saved', 10, 2);

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