This action works on version and below. If using version 4, please use acf/save_post


This action is called when a page / post / options page / taxonomy / user / attachment is saved.

ACF uses this hook to save the $_POST[‘fields’] data. (acf.php line 1705) with a priority of 10.


This action contains one parameter: $post_id

You can use this action to save / modify the $_POST data of the fields. eg:


function my_acf_save_post( $post_id )
	// vars
	$fields = false;

	// load from post
	if( isset($_POST['fields']) )
		$fields = $_POST['fields'];

	// ...

// run before ACF saves the $_POST['fields'] data
add_action('acf_save_post', 'my_acf_save_post', 1);

// run after ACF saves the $_POST['fields'] data
add_action('acf_save_post', 'my_acf_save_post', 20);


We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.