This action is fired during the validation process (triggered when publishing a post) and allows you to review $_POST data and add validation errors.

If you are looking for a filter to validate a specific field, please use acf/validate_value.


  • Added in v5.0.0


Adding a validation error is done via the acf_add_validation_error( $input, $message = '' ) function. This function accepts 2 paramters. The first is the input’s name attribute (used by JS to match the message to the correct HTML element) and the second is the message string.

Removing validation errors is done via the acf_reset_validation_errors() function.

This example demonstrates how the action could be used to bypass validation for an administrator



add_action('acf/validate_save_post', 'my_acf_validate_save_post', 10, 0);

function my_acf_validate_save_post() {
	// check if user is an administrator
	if( current_user_can('manage_options') ) {
		// clear all errors
	// check custom $_POST data
	if( empty($_POST['my_input']) ) {
		acf_add_validation_error( 'my_input', 'Please check this input to proceed' );



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.