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

Earn Money by Referring People

Refer customers to us with your affiliate link and earn commission on sales from your link.

Sign Up

Pin It on Pinterest