Newsletters: Action – wpml_field_saved


wpml_field_saved is fired after a custom field has been saved.


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


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

WordPress Plugins

Start selling products, sending newsletters, publishing ads, and more through your own WordPress website using our premium WordPress plugins.


Pin It on Pinterest