acf/pre_save_post

acf/pre_save_post

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.8.3

apply_filters('acf/pre_save_post') is found 1 times:

  • /includes/forms/form-front.php line 395
    			// add global for backwards compatibility
    			$GLOBALS['acf_form'] = $form;
    
    			// allow for custom save
    			$post_id = apply_filters( 'acf/pre_save_post', $post_id, $form );
    
    			// Restrict $_POST['acf'] to the field keys the form actually exposed, so the
    			// save path cannot accept values for fields the form did not render.
    			// phpcs:disable WordPress.Security.NonceVerification.Missing -- Verified in check_submit_form().
    			if ( isset( $_POST['acf'] ) && is_array( $_POST['acf'] ) ) {
    				$allowed_keys = $this->get_allowed_field_keys( $form );